5 years ago in Java Classes And Methods

Which of these statement is incorrect?

[A] All object of a class are allotted memory for the all the variables defined in the class.
[B] If a function is defined public it can be accessed by object of other class by inheritance.
[C] main() method must be made public.
[D] All object of a class are allotted memory for the methods defined in the class.
Loading...
Next Question

Overall Stats

Attempted 243
Correct 51
Incorrect 92
Viewed 100

Answers

Guest
Guest
Shamsa hafeez
Shamsa hafeez - 1 week ago

Shamsa hafeez from Lahore, Pakistan is saying If a function is defined public it can be accessed by object of other class by inheritance. is correct answer

Zo Go
Zo Go - 1 month ago

Zo Go from Casablanca, Morocco is saying All object of a class are allotted memory for the methods defined in the class. is correct answer

Assaad Amine
Assaad Amine - 1 month ago

Assaad Amine from Casablanca, Morocco is saying main() method must be made public. is correct answer

Awa Kone
Awa Kone - 1 month ago

Awa Kone from Berrechid, Morocco is saying All object of a class are allotted memory for the all the variables defined in the class. is correct answer

ayoub benigmim
ayoub benigmim - 1 month ago

ayoub benigmim from Casablanca, Morocco is saying All object of a class are allotted memory for the all the variables defined in the class. 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 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.

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 interface provides the capability to store objects using a key-value pair?

  • [A] Java.util.Map
  • [B] Java.util.Set
  • [C] Java.util.List
  • [D] Java.util.Collection