Select Category 
Java Interview Questions Answers Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Exammaterial.
Explain the usage of the keyword transient?
Java Interview Questions Answers Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Exammaterial.
This keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero for integers).
Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Questions Answers Exammaterial. Java Interview Quest
Java Interview Questions Answers Exammaterial.  Java Interview Questions Answers Exammaterial.  Java Interview Questions Answers Exammaterial.  Java Interview Questions Answers Exammaterial.  Java Interview Questions Answers Exammaterial.  Java Interview Questions Answers Exammaterial.  Java Interview Questions Answers Exammaterial.&nb
 

Java Interview Questions Answers

Java Interview Question - 136 : -

Explain the usage of the keyword transient?

Java Interview Answer - 136 : -

This keyword indicates that the value of this member variable does not have to be serialized with the object. When the class will be de-serialized, this variable will be initialized with a default value of its data type (i.e. zero for integers).
 

Java Interview Question - 137 : -

What is the Collections API?

Java Interview Answer - 137 : -

The Collections API is a set of classes and interfaces that support operations on collections of objects.
 

Java Interview Question - 138 : -

Is Iterator a Class or Interface? What is its use?

Java Interview Answer - 138 : -

Iterator is an interface which is used to step through the elements of a Collection.
 

Java Interview Question - 139 : -

What happens when a thread cannot acquire a lock on an object?

Java Interview Answer - 139 : -

If a thread attempts to execute a synchronized method or synchronized statement and is unable to acquire an object's lock, it enters the waiting state until the lock becomes available.
 

Java Interview Question - 140 : -

Can you have virtual functions in Java?

Java Interview Answer - 140 : -

Yes, all functions in Java are virtual by default. This is actually a pseudo trick question because the word "virtual" is not part of the naming convention in Java (as it is in C++, C-sharp and VB.NET), so this would be a foreign concept for someone who has only coded in Java. Virtual functions or virtual methods are functions or methods that will be redefined in derived classes.
 

Java Interview Question - 141 : -

What is the difference between the >> and >>> operators?

Java Interview Answer - 141 : -

The >> operator carries the sign bit when shifting right. The >>> zero-fills bits that have been shifted out.
 

Java Interview Question - 142 : -

How are Observer and Observable used?

Java Interview Answer - 142 : -

Objects that subclass the Observable class maintain a list of observers. When an Observable object is updated, it invokes the update() method of each of its observers to notify the observers that it has changed state. The Observer interface is implemented by objects that observe Observable objects.
 

Java Interview Question - 143 : -

What is the difference between a MenuItem and a CheckboxMenuItem?

Java Interview Answer - 143 : -

The CheckboxMenuItem class extends the MenuItem class to support a menu item that may be checked or unchecked.
 

Java Interview Question - 144 : -

What does a well-written OO program look like?

Java Interview Answer - 144 : -

A well-written OO program exhibits recurring structures that promote abstraction, flexibility, modularity and elegance.
 

Java Interview Question - 145 : -

What is the difference between the Font and FontMetrics classes?

Java Interview Answer - 145 : -

The FontMetrics class is used to define implementation-specific properties, such as ascent and descent, of a Font object
 

Java Interview Question - 146 : -

What are the high-level thread states?

Java Interview Answer - 146 : -

The high-level thread states are ready, running, waiting, and dead.
 

Java Interview Question - 147 : -

How are the elements of a GridBagLayout organized?

Java Interview Answer - 147 : -

The elements of a GridBagLayout are organized according to a grid. However, the elements are of different sizes and may occupy more than one row or column of the grid. In addition, the rows and columns may have different sizes.
 

Java Interview Question - 148 : -

What are three ways in which a thread can enter the waiting state?

Java Interview Answer - 148 : -

A thread can enter the waiting state by invoking its sleep() method, by blocking on IO, by unsuccessfully attempting to acquire an object's lock, or by invoking an object's wait() method. It can also enter the waiting state by invoking its (deprecated) suspend() method.
 

Java Interview Question - 149 : -

What value does readLine() return when it has reached the end of a file?

Java Interview Answer - 149 : -

The readLine() method returns null when it has reached the end of a file.
 

Java Interview Question - 150 : -

What is the difference between the Reader/Writer class hierarchy and the InputStream/OutputStream class hierarchy?

Java Interview Answer - 150 : -

The Reader/Writer class hierarchy is character-oriented, and the InputStream/OutputStream class hierarchy is byte-oriented.