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 166. What is Downcasting ?

Ans. Downcasting is the casting from a general to a more specific type, i.e. casting down the hierarchy

Is it helpful? Add Comment View Comments
Ques 167. Can a method be overloaded based on different return type but same argument type ?
Ans. No, because the methods can be called without using their return type in which case there is ambiquity for the compiler
Is it helpful? Add Comment View Comments
Ques 168. What happens to a static var that is defined within a method of a class ?
Ans. Can't do it. You'll get a compilation error
Is it helpful? Add Comment View Comments
Ques 169. How many static init can you have ?
Ans. As many as you want, but the static initializers and class variable initializers are executed in textual order and may not refer to class variables declared in the class whose declarations appear textually after the use, even though these class variables are in scope.
Is it helpful? Add Comment View Comments
Ques 170. What is the difference amongst JVM Spec, JVM Implementation, JVM Runtime ?
Ans. The JVM spec is the blueprint for the JVM generated and owned by Sun. The JVM implementation is the actual implementation of the spec by a vendor and the JVM runtime is the actual running instance of a JVM implementation
Is it helpful? Add Comment View Comments

Most helpful rated by users:

©2016 WithoutBook