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.
The first grain used by humans was-
Where are the Bhimbetka caves located?
Harappa is situated on the banks of which river?
Recently, the Government of India gave the approval to administer Remdesivir for emergency use in patients suffering from COVID-19. In this context, con...
Match the following crematorium of the famous persons
Famous persons Crematorium
<...Consider the followingpairs:
Whic...
What is the first sermon of Buddha called as?
Which of the following features characterize the pre-Mauryan (6th century B.C to 4th century B.C) period in northIndia?
1. Punch marked coins
Which of the following is the first book of medieval India?
1) Kitab ul hind
2) Tehkik e hind
3) Shahnama
4) Tuzuk e Babri...
Who was the original builder of Jantar Mantar in New Delhi?