-
-
What is the Vector class
The Vector class provides the capability to implement a growable array of objects
-
Which class is extended by all other classes
The Object class is extended by all other classes.
-
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.
-
What is the SimpleTimeZone class
The SimpleTimeZone class provides support for a Gregorian calendar.
-
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.
-
Which Math method is used to calculate the absolute value of a number
The abs() method is used to calculate absolute values.
-
-
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
-
What is the GregorianCalendar class
The GregorianCalendar provides support for traditional Western calendars.
-
What is an abstract method
An abstract method is a method whose implementation is deferred to a subclass.
-
What are the high-level thread states
The high-level thread states are ready, running, waiting, and dead.
-
What is the purpose of the System class
The purpose of the System class is to provide access to system resources.
-
Can an exception be rethrown
Yes, an exception can be rethrown.
-
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.
-
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.
-
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 state is a thread in when it is executing
An executing thread is in the running state.
-
-
What is the difference between a public and a non-public class
A public class may be accessed outside of its package. A non-public class may not beaccessed outside of its package.
Java Interview Questions
Ans