Programming - Type Casting
You Are Here :: Home > JAVA > Type Casting - General Questions
1. |
Java supports ______________ types of castings – primitive data type casting and reference type casting.
|
|
Answer: Option B
Explanation:
|
2. |
____________________ casting is nothing but assigning one Java object to another object.
|
A. |
Reference type |
B.
|
Non-Reference type |
C.
|
Both
|
D.
|
None
|
|
Answer: Option A
Explanation:
|
3. |
Java data type casting comes with __________ flavors.
|
|
Answer: Option C
Explanation:
Java data type casting comes with 3 flavors.1. Implicit casting 2. Explicit casting 3. Boolean casting. |
|
4. |
__________________ A data type of lower size (occupying less memory) is assigned to a data type of higher size.
|
A. |
Implicit casting (widening conversion) |
B.
|
UnImplicit |
C.
|
Both
|
D.
|
None
|
|
Answer: Option A
Explanation:
|
5. |
Implicit Casting is also known as ______________________ type conversion.
|
A. |
Automatic |
B.
|
Explicit |
C.
|
Both
|
D.
|
None
|
|
Answer: Option A
Explanation:
|
6. |
_______________A data type of higher size (occupying more memory) cannot be assigned to a data type of lower size.
|
A. |
Implicit casting (widening conversion) |
B.
|
UnImplicit |
C.
|
Both
|
D.
|
None
|
|
Answer: Option B
Explanation:
|
next »