JAVA Data-types-and-type-casting Online Test

Advertisement

Instructions:

  • Total number of questions: 10.
  • Time allotted: 10 minutes.
  • Each question carries 1 mark.
  • No negative marks.
  • DO NOT refresh the page.
  • All the best :-)

What You Will Learn:

This Java Data Types and Type Casting Online Test helps you to Boost your Knowledge in Java. In this test, we cover topics in the form of questions like:
  • All 8 primitive data types (byte, short, int, long, float, double, char, boolean) and their memory sizes.
  • 16-bit Unicode character representation in char vs 8-bit ASCII.
  • Widening (implicit) type casting vs Narrowing (explicit) type casting.
  • Arithmetic promotion rules (automatic promotion of byte and short operands to int).
  • Handling overflow and underflow wrap-around during narrowing type casts.

Share your Lovable

Advertisement