-
Which of the following is true about packages?
a) Classes in the same package can access each other.
b) The inherited class should be in the same package as the parent class.
c) Package name a.b implies, package b is inherits from package a.
d) Package access is next to private access in being restrictive. -
-
-
Given the two methods:
void f() throws IOException
Which of the following is/are correct overriding method?
a) void f() throws IOException
b) public void f()
c) void f() throws FileNotFoundException
d) void f() throws Exception -
How many methods in the Serializable interface?
There is no method in the Serializable interface. The Serializable interface acts as a marker, telling the object serialization tools that your class is serializable.
-
Convert List Object to Map Object
How to convert list object in to map object?
-
-
-
-
-
What is the Locale class
The Locale class is used to tailor program output to the conventions of a particulargeographic, political, orcultural region.
-
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.
-
-
-
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.
-
Compress String
How to compress a String (algorithem)?
-
Bytecode to Sourcecode
How to convert bytecode to sourcecode?
-
Java Deadlock
How to avoid deadlock in Java?
-
Change jar File Icon
How to change jar file icon.
-
Garbage Collection Algorithm
What algorithm is used in garbage collection?
Java Interview Questions
Ans