Answer: instanceof object : Questions « Type Casting « SCJP
Java Source And Data Type
4.6.26.Answer: instanceof object
d= NaN cast to
Value = 0
Object references can be converted in both method calls and assignments, and the rules are identical(True/False)
Answer: reference method call and assignment
What is the output(object and primitive type)?
Answer: object and primitive type
What is the output(object type conversion)?
Answer: object type conversion
What is the output(interface type)?
Answer: interface type
What is the output(boolean operator and short type)?
Answer: boolean operator and short type
What are the possible values of b in the following code?
Answer: casting between long and byte
What are the possible values of the result l in the following code?
Answer: assignment between byte and long
For the following hierarchy and code, Which of the following saveEvent calls would run without an exception?
Answers: exception hierarchy
Which of the following Java statements will compile and execute without error?
Answer: implement Runnable interface
What will happen when you try to compile and run this code?
Answer: interface casting
What will happen when you call this method with int primitives as in the following fragment?
Answer: method overloading
Which of the following Java code fragments compiles and executes without error?
Answer: interface type casting
What will be the result of trying to compile the following class?
Answer: instanceof object
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.