JOIN ADRE 2.0 Telegram Group

Objects and Classes - Java MCQs with Answers

1 Which of the following is an invalid declaration for the main method in java program?
A public static void main (String [ ] args)
B public static strictfp void main(String args[ ])
C final static public void main (String args[ ])
D All are Correct

Answer: Option [D]
2 A top level class may have which one of the following access modifiers?
A package
B private
C protected
D public

Answer: Option [D]


3 Visualizing program components as objects is characteristics of which of the following language types?
A Object-oriented programming language
B Machine language
C Command line operating system
D Procedural language

Answer: Option [A]
4 A subclass is also called as
A inner class
B nested class
C derived class
D hidden class

Answer: Option [C]
5 Attribute of an object can include information about
A State
B Method
C Behavior
D Procedures

Answer: Option [A]

Take Mock Tests

Government Schemes Mock Test Start Test!
Political Science Mock Test – 42 Start Test
History Test – 190 Start Test
Quantitative Aptitude Test Start Test!
Trigonometry - Mock Test Start Test!
Data Interpretation - Mock Test Start Test!
General Awareness - Mock Test Start Test!
Reasoning Ability - Mock Test Start Test!
Englist(Antonyms) Mock Test 1 Start Test!
Quantitative Aptitude (Percentage) Mock Test Start Test!
Economy Mock Test 1 Unlock Test!
Books & Authors - Test 2 Unlock Test!


Assam Direct Recruitment Test Series