Without Book Interview Questions and Answers | Online Test | Moct Test
Download Android App in your Android Device from Google Play Store
- Search for "Withoutbook Practice Exam Test" in Mobile/Tablet Play Store
Institute Training Search by Name or Email

Exams Attended

Make Homepage

Bookmark this page

Subscribe Email Address

Core Java Interview Questions and Answers

Ques 216. What must a class do to implement an interface?

Ans. It must provide all of the methods in the interface and identify the interface in its implements clause.

Is it helpful? Add Comment View Comments
Ques 217. What is the advantage of the event-delegation model over the earlier event-inheritance model?
Ans. The event-delegation model has two advantages over the event-inheritance model. First, it enables event handling to be handled by objects other than the ones that generate the events (or their containers). This allows a clean separation between a component's design and its use. The other advantage of the event-delegation model is that it performs much better in applications where many events are generated. This performance improvement is due to the fact that the event-delegation model does not have to repeatedly process unhandled events, as is the case of the event-inheritance model.
Is it helpful? Add Comment View Comments
Ques 218. How are commas used in the intialization and iteration parts of a for statement?
Ans. Commas are used to separate multiple statements within the initialization and iteration parts of a for statement.
Is it helpful? Add Comment View Comments
Ques 219. What is an abstract method?
Ans. An abstract method is a method whose implementation is deferred to a subclass.
Is it helpful? Add Comment View Comments
Ques 220. What value does read() return when it has reached the end of a file?
Ans. The read() method returns -1 when it has reached the end of a file.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2016 WithoutBook