Ques 116. What modifiers may be used with an interface declaration?

Ques 117. Is a class a subclass of itself?

Ans. A class is a subclass of itself.

Is it helpful?
YesNoAdd CommentView Comments

Ques 118. What is the difference between a while statement and a do statement?

Ans. A while statement checks at the beginning of a loop to see whether the next loop iteration should occur. A do statement checks at the end of a loop to see whether the next iteration of a loop should occur. The do statement will always execute the body of a loop at least once.

Is it helpful?
YesNoAdd CommentView Comments

Ques 119. What modifiers can be used with a local inner class?

Ans. A local inner class may be final or abstract.

Is it helpful?
YesNoAdd CommentView Comments

Ques 120. What is the purpose of the File class?

Ans. The File class is used to create objects that provide access to the files and directories of a local file system.