-
-
-
-
-
-
-
If a class is declared without any access modifiers, where may the class be accessed
A class that is declared without any access modifiers is said to have package access. Thismeans that the class can only be accessed by other classes and interfaces that are definedwithin the same package.
-
-
-
-
What is the difference between yielding and sleeping
When a task invokes its yield() method, it returns to the ready state. When a task invokesits sleep() method, it returns to the waiting state.
-
-
-
Name the eight primitive Java types
The eight primitive types are byte, char, short, int, long, float, double, and boolean.
-
-
-
-
-
Exeption Handling
What happenes if exception occur in finally block?
-
Java Interview Questions
Ans