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 126. What is casting?

Ans. There are two types of casting, casting between primitive numeric types and casting between object references. Casting between numeric types is used to convert larger values, such as double values, to smaller values, such as byte values. Casting between object references is used to refer to an object by a compatible class, interface, or array type reference.

Is it helpful? Add Comment View Comments
Ques 127. What is the return type of a program's main() method?
Ans. A program's main() method has a void return type.

public static void main(String args[])
{
System.out.println("WithoutBook");
}
Is it helpful? Add Comment View Comments
Ques 128. What class of exceptions are generated by the Java run-time system?
Ans. The Java runtime system generates RuntimeException and Error exceptions.
Is it helpful? Add Comment View Comments
Ques 129. What class allows you to read objects directly from a stream?
Ans. The ObjectInputStream class supports the reading of objects from input streams.
Is it helpful? Add Comment View Comments
Ques 130. What is the difference between a field variable and a local variable?
Ans. A field variable is a variable that is declared as a member of a class. A local variable is a variable that is declared local to a method.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2016 WithoutBook