-
What method must be implemented by all threads
All tasks must implement the run() method, whether they are a subclass of Thread orimplement theRunnable interface.
-
What is the difference between the paint() and repaint() methods
The paint() method supports painting via a Graphics object. The repaint() method is usedto cause paint() tobe invoked by the AWT painting thread.
-
What restrictions are placed on the values of each case of a switch statement
During compilation, the values of each case of a switch statement must evaluate to avalue that can bepromoted to an int value.
-
Read Input at Run Time
What are the different ways to read input from keyboard at run time?
-
Inherit Private/Protected Class
Can a private/protected class be inherited? Explain
-
DataType Byte Values
What are the byte values of datatypes?
-
Garbage Collection Algorithm
What algorithm is used in garbage collection?
-
Change jar File Icon
How to change jar file icon.
-
Java Deadlock
How to avoid deadlock in Java?
-
Bytecode to Sourcecode
How to convert bytecode to sourcecode?
-
Compress String
How to compress a String (algorithem)?
-
Can an unreachable object become reachable again
An unreachable object may become reachable again. This can happen when the object'sfinalize() method isinvoked and the object performs an operation which causes it to become accessible toreachable objects.
-
-
-
What is the difference between preemptive scheduling and time slicing
Under preemptive scheduling, the highest priority task executes until it enters the waitingor dead states or a higher priority task comes into existence. Under time slicing, a taskexecutes for a predefined slice of time and then reenters the pool of ready tasks. Thescheduler then determines which task should execute next, based on priority andother factors.
-
What is the Locale class
The Locale class is used to tailor program output to the conventions of a particulargeographic, political, orcultural region.
-
-
-
-
Java Interview Questions
Ans