-
What is the priority of the Garbage collector thread of jdk.?
A) low-priorityB) highest priorityC) medium priorityD) decided at runtime
-
What are the main differences between Java and C++?
Everything is an object in Java (Single root hierarchy as everything gets derived from java.lang.Object). Java does not have all the complicated aspects of C++ ( For ex: Pointers, templates, unions, operator overloading, structures etc..) The Java language promoters initially said "No pointers!", but when many programmers questioned how you can work without pointers, the promoters began saying "Restricted...
-
-
-
-
Which containers use a border Layout as their default layout
The window, Frame and Dialog classes use a border layout as their default layout.
-
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
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.
What modifiers may be used with an interface declaration
An interface may be declared as public or abstract.
How can a dead thread be restarted
A dead thread cannot be restarted.
____________ 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
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.
Ans