Browse Today's favorites or All time favorites.
Please Sign In or Register to share and submit your questions.
Java Queries
Complete java interview questions library
Core Java Interview Questions
Feb
2008
What is a task's priority and how is it used in scheduling?
A task's priority is an integer value that identifies the relative order in which it should be executed with respect to other tasks. The scheduler attempts to schedule higher priority tasks before lower priority tasks.
Feb
2008
What is the catch or declare rule for method declarations?
If a checked exception may be thrown within the body of a method, the method must either catch the exception or declare it in its throws clause.
Feb
2008
What are order of precedence and associativity, and how are they used?
Order of precedence determines the order in which operators are evaluated in expressions. Associatity determines whether an expression is evaluated left-to-right or right-to-left
Feb
2008
What is a native method?
A native method is a method that is implemented in a language other than Java.
Feb
2008
What is the difference between preemptive scheduling and time slicing?
Under preemptive scheduling, the highest priority task executes until it enters the waiting or dead states or a higher priority task comes into existence. Under time slicing, a task executes for a predefined slice of time and then reenters the pool of ready tasks.
Feb
2008
What restrictions are placed on the location of a package statement within a source code file?
A package statement must appear as the first line in a source code file (excluding blank lines and comments).
Feb
2008
Does garbage collection guarantee that a program will not run out of memory?
Garbage collection does not guarantee that a program will not run out of memory. It is possible for programs to use up memory resources faster than they are garbage collected. It is also possible for programs to create objects that are not subject to garbage collection
Feb
2008
What are wrapped classes?
Wrapped classes are classes that allow primitive types to be accessed as objects.
Feb
2008
Which java.util classes and interfaces support event handling?
The EventObject class and the EventListener interface support event processing.
Feb
2008
What is the difference between yielding and sleeping?
When a task invokes its yield() method, it returns to the ready state. When a task invokes its sleep() method, it returns to the waiting state.
Do not see interviews as the chance
Do not see interviews as the chance, think it as an opportunity to present you to a company. It is a chance for you to prove yourself in front of the interviewer, so you should come with full preparation of questions you need answers...
Write a comment