Question
1.   Predict the output of the code public
class Animal { Â Â public static void main(String args[]) Â Â Â Â Â Â Â Â Â Â Â {Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â Â public int localVar = 5; Â Â Â Â Â Â Â Â Â Â Â } Â Â Â Â Â Â Â Â }Solution
- Illegal Access Modifier in Method Scope :
- The keyword public is not allowed within the body of a method to declare a variable. Variables declared inside methods are considered local variables, and local variables cannot have access modifiers (public, private, protected).
- This results in a compilation error.
If 15% of A: 25% of B:: 8 : 11, then A : B is equal to:
Who among the following was the founder of the Arya Mahila Samaj in the early 1880s?
Which of the following rights are included under article 21 of the constitution ?
1. Right to choose one’s gender identity
2. Right...
Which bank has launched ‘Sarathi,’ a revolutionary digital onboarding platform?
Income of A is twice the income of B. B and A spend 60% and 70% respectively of their incomes. Find the savings of A, if B saves Rs. 15000 in a month.
Who founded the Rahnumae Mazdayasne Sabha to renovate the Zoroastrian religion?
Article 243-I of the Constitution mandates setting up of the State Finance Commission (SFC) every _________ years.
During a reporting period, a company’s assets increase by Rs. 80,000,000. Liabilities decrease by Rs. 20,000,000. Equity must therefore?
Caustic soda is generally NOT used in the ________.
Journal lists transactions in which order?