-
-
What state is a thread in when it is executing
An executing thread is in the running state.
-
What is the highest-level event class of the event-delegation model
The java.util.EventObject class is the highest-level class in the event-delegation classhierarchy.
-
What is the relationship between clipping and repainting
When a window is repainted by the AWT painting thread, it sets the clipping regions tothe area of the window that requires repainting.
-
How are the elements of a CardLayout organized
The elements of a CardLayout are stacked, one on top of the other, like a deck of cards.
-
Can an exception be rethrown
Yes, an exception can be rethrown.
-
What is the purpose of the System class
The purpose of the System class is to provide access to system resources.
-
What are the high-level thread states
The high-level thread states are ready, running, waiting, and dead.
-
What is an abstract method
An abstract method is a method whose implementation is deferred to a subclass.
-
What is the GregorianCalendar class
The GregorianCalendar provides support for traditional Western calendars.
-
Sizeofthe Variable
How to find the size of the (datatype) variable in java?in c we use sizeof() operator for for finding size of data type
-
-
Which Math method is used to calculate the absolute value of a number
The abs() method is used to calculate absolute values.
-
What is the purpose of the File class
The File class is used to create objects that provide access to the files and directories of alocal file system.
-
What is the SimpleTimeZone class
The SimpleTimeZone class provides support for a Gregorian calendar.
-
What is the difference between the Font and FontMetrics classes
The FontMetrics class is used to define implementation-specific properties, such asascent and descent, of a Font object.
-
Which class is extended by all other classes
The Object class is extended by all other classes.
-
What is the Vector class
The Vector class provides the capability to implement a growable array of objects
-
-
Explain Object Construction in simple terms
In Java, object types (i.e., classes) must be explicitly constructed for initialization. Explain object construction. Then, state the name of the mechanism for object destruction, and explain in simple terms how it works.
Java Interview Questions
Ans