## Java MCQ : Literals in Java (Multiple Choice Questions)

Question 1 |

_________ literal is used to Create a Values of the integral types byte, short, int, and long.

Double | |

Byte | |

Long | |

Integer |

Question 1 Explanation:

Values of the integral types byte, short, int, and long can be created from int literals

Question 2 |

Number System whose digits consists of the numbers 0 through 9 is called as ______________.

Decimal Number System | |

Binary Number System | |

Octal Number System | |

Hexa Decimal Number System |

Question 3 |

Hexadecimal Numbers are having base _________.

8 | |

2 | |

10 | |

16 |

Question 4 |

In java programming, You can create binary literal in ________.

Java SE 6 and later | |

Java SE 1 and later | |

Java SE 5 and later | |

Java SE 7 and later |

Question 5 |

Integer literal containing value "F" comes under __________ system.

None of these | |

Binary Number | |

Octal Numer | |

Hexa Decimal Number |

There are 5 questions to complete.