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 211. What is the purpose of the finally clause of a try-catch-finally statement?

Ans. The finally clause is used to provide the capability to execute code no matter whether or not an exception is thrown or caught.

Is it helpful? Add Comment View Comments
Ques 212. What is the argument type of a program's main() method?
Ans. A program's main() method takes an argument of the String[] type.

public static void main(String args[])
{
System.out.println("WithoutBook");
}
Is it helpful? Add Comment View Comments
Ques 213. Which Java operator is right associative?
Ans. The = operator is right associative.
Is it helpful? Add Comment View Comments
Ques 214. Can a double value be cast to a byte?
Ans. Yes, a double value can be cast to a byte.
Is it helpful? Add Comment View Comments
Ques 215. What is the difference between a break statement and a continue statement?
Ans. 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.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2016 WithoutBook