JOIN ADRE 2.0 Telegram Group

Basic Java Objective Interview Questions and Answers

Questions
6 The order of the three top level elements of the java source file are
A Import, Package, Class
B Class, Import, Package
C Package, Import, Class
D Random order

Answer: Option [C]
7 The minimum value of char type variable is
A ‘\u0020’
B ‘\u00ff’
C ‘\u0010’
D ‘\u0000’

Answer: Option [D]

'\u0000' i.e. 0 is the minimum value of the char type varibale in java

Advertisement
ADRE 2.0 Mock Test - 5 Start Test
ADRE 2.0 Mock Test - 5 Start Test

DOWNLOAD CURRENT AFFAIRS PDF FROM APP

8 Java uses ___ to represent characters
A ASCII code
B Unicode
C Byte code
D None of the above

Answer: Option [B]
9 Which one is not supported by OOP?
A Abstraction
B Polymorphism
C Encapsulation
D Global variables

Answer: Option [D]

Four major principles of object oriented programming are Abstraction, Encapsulation, Inheritance and Polymorphism

10 Java programs are
A Platform-dependent
B Interpreter-dependent
C Platform-independent
D Interpreter-independent

Answer: Option [C]

ADRE 2.0 MOCK TEST

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!

Chapters

Advertisement