Search your topic in Java2share
Home > FAQs
eXTReMe Tracker


CoreJava FAQs


Untitled Document

Q85. What is the difference between a break statement and a continue statement?
A break statement results in the termination of the statement to which it applies (switch, for, do, or while). A continue statement is used to end the current loop iteration and return control to the loop statement.

Q86. What must a class do to implement an interface?
It must provide all of the methods in the interface and identify the interface in its
implements clause.

Q87. What method is invoked to cause an object to begin executing as a separate thread?
The start() method of the Thread class is invoked to cause an object to begin executing as a separate thread.

Q88. Name two subclasses of the TextComponent class.
TextField and TextArea