-
-
There are _____ types of Comments in Java
A) One B) Two C) ThreeD) Four Explanation: There are 3 types of comments namely Single-line, Multi-line and Documentation comment
-
Compareto and equals method
Difference between CompareTo and equals method.
-
-
What invokes a thread's run() method
After a thread is started, via its start() method or that of the Thread class, the JVMinvokes the thread's run() method when the thread is initially executed.
-
-
-
-
____________ is the mechanism that binds together code and the data it manipulates, and keeps both safe from outside interference and misuse
A) EncapsulationB) ClassC) InheritenceD) Polymorphism
-
How can a dead thread be restarted
A dead thread cannot be restarted.
-
-
What modifiers may be used with an interface declaration
An interface may be declared as public or abstract.
-
-
-
-
What class is the top of the AWT event hierarchy
The java.awt.AWTEvent class is the highest-level class in the AWT event-classhierarchy.
-
String Input Library
Write a Java program without using any library function in string
i/p: My name is Rama
o/p: Rama si eman yM
-
Which containers use a border Layout as their default layout
The window, Frame and Dialog classes use a border layout as their default layout.
-
-
Java Interview Questions
Ans