Basic Datatypes


  1. Which of these is a wrapper for simple data type char?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Character


  1. Which of these is a super class of wrappers Long, Character & Integer?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: A

    Number is an abstract class containing subclasses Double, Float, Byte, Short, Integer and Long.



  1. Which of these is a wrapper for data type int?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    Integer


  1. Which of these is a wrapper for simple data type float?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    float



  1. How to get UTC time?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    In java 8, Instant.now() provides current time in UTC/GMT.