Java Quiz Exam Oriented
Answers are marked with light yellow.
Question 1: interface can have only static variables.
Select one:
True
False
Question 2: default is the default access specifiersin class and interface.
Select one:
True
False
Question 3: notify() method is defined in Object class.
Select one:
True
False
Question 4: In jdk1.7 and later, underscore characters "_" can appear anywhere between digits in a numerical literal.
Select one:
True
False
Question 5: abstract class can have parameterized constructor.
Select one:
True
False
Question 6: we can define individual anonymous class in java program .
Select one:
True
False
Question 7: In StringBuffer class, equals() method checks the content.
Select one:
True
False
Question 8: main() method can be overloaded.
Select one:
True
False
Java Quiz Question and Answers - Part 9