- 
                    What is the difference between a public and a non-public classA public class may be accessed outside of its package. A non-public class may not beaccessed outside of its package. 
- 
                    
- 
                    What state is a thread in when it is executingAn executing thread is in the running state. 
- 
                    What is the highest-level event class of the event-delegation modelThe java.util.EventObject class is the highest-level class in the event-delegation classhierarchy. 
- 
                    What is the relationship between clipping and repaintingWhen 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 organizedThe elements of a CardLayout are stacked, one on top of the other, like a deck of cards. 
- 
                    Can an exception be rethrownYes, an exception can be rethrown. 
- 
                    What is the purpose of the System classThe purpose of the System class is to provide access to system resources. 
- 
                    What are the high-level thread statesThe high-level thread states are ready, running, waiting, and dead. 
- 
                    What is an abstract methodAn abstract method is a method whose implementation is deferred to a subclass. 
- 
                    What is the GregorianCalendar classThe GregorianCalendar provides support for traditional Western calendars. 
- 
                    Sizeofthe VariableHow 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 numberThe abs() method is used to calculate absolute values. 
- 
                    What is the purpose of the File classThe File class is used to create objects that provide access to the files and directories of alocal file system. 
- 
                    What is the SimpleTimeZone classThe SimpleTimeZone class provides support for a Gregorian calendar. 
- 
                    What is the difference between the Font and FontMetrics classesThe FontMetrics class is used to define implementation-specific properties, such asascent and descent, of a Font object. 
- 
                    Which class is extended by all other classesThe Object class is extended by all other classes. 
- 
                    What is the Vector classThe Vector class provides the capability to implement a growable array of objects 
- 
                    
Java Interview Questions

 
  
  
  
		
Ans