Interview Questions - Advanced Java
149.
What is a void return type?
A void return type indicates that a method does not return a value.
150.
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.
151.
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.
152.
What happens when you add a double value to a String?
The result is a String object.
Quick links
Quantitative Aptitude
Verbal (English)
Reasoning
Programming
Interview
Placement Papers