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 226. When can an object reference be cast to an interface reference?

Ans. An object reference be cast to an interface reference when the object implements the referenced interface.

Is it helpful? Add Comment View Comments
Ques 227. Which class is extended by all other classes?
Ans. The Object class is extended by all other classes.
Is it helpful? Add Comment View Comments
Ques 228. Can an object be garbage collected while it is still reachable?
Ans. A reachable object cannot be garbage collected. Only unreachable objects may be garbage collected.
Is it helpful? Add Comment View Comments
Ques 229. Is the ternary operator written x : y ? z or x ? y : z ?
Ans. It is written x ? y : z.
Is it helpful? Add Comment View Comments
Ques 230. How is rounding performed under integer division?
Ans. The fractional part of the result is truncated. This is known as rounding toward zero.
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2016 WithoutBook