category



CORE JAVA INTERVIEW QUESTIONS AND ANSWERS



151. How are the elements of a GridLayout organized?

The elements of a GridBad layout are of equal size and are laid out using the squares of a grid.

152. What an I/O filter?

An I/O filter is an object that reads from one stream and writes to another, usually altering the data in some way as it is passed from one stream to another.

153. If an object is garbage collected, can it become reachable again?

Once an object is garbage collected, it ceases to exist. It can no longer become reachable again.

154. What is the Set interface?

The Set interface provides methods for accessing the elements of a finite mathematical set. Sets do not allow duplicate elements.

155. What classes of exceptions may be thrown by a throw statement?

A throw statement may throw any expression that may be assigned to the Throwable type.

156. What are E and PI?

E is the base of the natural logarithm and PI is mathematical value pi.

157. Are true and false keywords?

The values true and false are not keywords.

158. What is a void return type?

A void return type indicates that a method does not return a value.

159. What is the purpose of the enableEvents() method?

The enableEvents() method is used to enable an event for a particular object. Normally, an event is enabled when a listener is added to an object for a particular event. The enableEvents() method is used by objects that handle events by overriding their event-dispatch methods.160. What is the difference between the File and RandomAccessFile classes?

The File class encapsulates the files and directories of the local file system. The RandomAccessFile class provides the methods needed to directly access data contained in any part of a file.



Practice does not make perfect. Only perfect practice makes perfect. ~Vince Lombardi
Home | About Us | Registration | Q-Bank | Formula | Demo | Coaching Centres | FAQ | Press Release | Contact Us
arrow arrow
Copyright © 2010-2012 Exam2Win, All rights reserved Disclaimer | Copyright | Privacy Policy