5 years ago in Java Classes And Methods

What is the output of this program?
class Output {

public static void main(String args[])

{

Object obj = new Object();

}

}

[A] Object
[B] class Object
[C] class java.lang.Object
[D] Compilation Error
Loading...
Next Question

Overall Stats

Attempted 206
Correct 33
Incorrect 80
Viewed 93

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 4 days ago

Shamsa hafeez from Lahore, Pakistan is saying Compilation Error is correct answer

Zo Go
Zo Go - 1 month ago

Zo Go from Casablanca, Morocco is saying Compilation Error is correct answer

ayoub benigmim
ayoub benigmim - 1 month ago

ayoub benigmim from Casablanca, Morocco is saying class java.lang.Object is correct answer

AHMED SOULIMANI
AHMED SOULIMANI - 1 month ago

AHMED SOULIMANI from Casablanca, Morocco is saying Compilation Error is correct answer

Souad El
Souad El - 1 month ago

Souad El from Casablanca, Morocco is saying Compilation Error is correct answer

Related Questions

Which method can be defined only once in a program?

  • [A] main method
  • [B] finalize method
  • [C] static method
  • [D] private method

Which of these class is super class of every class in Java?

  • [A] String class
  • [B] Object class
  • [C] Abstract class
  • [D] ArrayList class

Which of these method of Object class is used to obtain class of an object at run time?

  • [A] get()
  • [B] void getclass()
  • [C] Class getclass()
  • [D] None of the mentioned

Which of these keywords cannot be used for a class which has been declared final?

  • [A] abstract
  • [B] extends
  • [C] abstract and extends
  • [D] None of the mentioned