Java Data Types and Variables - MCQ - Quiz

  • A 3 Bytes
  • B 4 Bytes
  • C 2 Bytes
  • D 8 Bytes
  • A None of these
  • B java.lang.Boolean
  • C java.util.Boolean
  • D java.io.Boolean
  • A short to int
  • B byte to int
  • C int to long
  • D long to int
  • A Two type are compatible and size of destination type is shorter than source type.
  • B Two type are compatible and size of destination type is equal of source type.
  • C Two type are compatible and size of destination type is larger than source type.
  • D All of the above