Object & Classes


  1. Which of these method of Object class can generate duplicate copy of the object on which it is called?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    clone()


  1. Which of these class is a superclass of all other classes?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: C

    The object class class is a superclass of all other classes.



  1. Which of these class holds a collection of static methods and variables?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    System class holds a collection of static methods and variables. The standard input, output and error output of java runtime is stored in the in, out and err variables of System class.


  1. Which of these class can encapsulate an entire executing program?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: D

    Process



  1. Standard output variable ‘out’ is defined in which class?











  1. View Hint View Answer Discuss in Forum

    NA

    Correct Option: B

    Standard output variable ‘out’ is defined in System class. out is usually used in print statement i:e System.out.print().