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 221. Can a Byte object be cast to a double value?

Ans. No, an object cannot be cast to a primitive value.

Is it helpful? Add Comment View Comments
Ques 222. What is the difference between a static and a non-static inner class?
Ans. A non-static inner class may have object instances that are associated with instances of the class's outer class. A static inner class does not have any object instances.
Is it helpful? Add Comment View Comments
Ques 223. If a variable is declared as private, where may the variable be accessed?
Ans. A private variable may only be accessed within the class in which it is declared.
Is it helpful? Add Comment View Comments
Ques 224. What is an object's lock and which object's have locks?
Ans. An object's lock is a mechanism that is used by multiple threads to obtain synchronized access to the object. A thread may execute a synchronized method of an object only after it has acquired the object's lock. All objects and classes have locks. A class's lock is acquired on the class's Class object.
Is it helpful? Add Comment View Comments
Ques 225. What is the % operator?
Ans. It is referred to as the modulo or remainder operator. It returns the remainder of dividing the first operand by the second operand.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2016 WithoutBook