5 years ago in Java Classes And Methods

Which of the following is a method having same name as that of it’s class?

[A] finalize
[B] delete
[C] class
[D] constructor
Loading...
Next Question

Overall Stats

Attempted 322
Correct 173
Incorrect 33
Viewed 116

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 20 hours ago

Shamsa hafeez from Lahore, Pakistan is saying constructor is correct answer

Ari Aarthi
Ari Aarthi - 3 weeks ago

Ari Aarthi is saying delete is correct answer

Khushi Garg
Khushi Garg - 3 weeks ago

Khushi Garg is saying constructor is correct answer

Zo Go
Zo Go - 1 month ago

Zo Go from Casablanca, Morocco is saying constructor is correct answer

Assaad Amine
Assaad Amine - 1 month ago

Assaad Amine from Casablanca, Morocco is saying constructor is correct answer

Related Questions

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

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 the following statements are incorrect?

  • [A] String is a class
  • [B] Strings in java are mutable
  • [C] Every string is an object of class String
  • [D] Java defines a peer class of String, called StringBuffer, which allows string to be altered.