MCQModerate1 mark
2
Fill in the blanks with the correct options:
A __________ method needs to be called with the help of an object.
Topic: Static and non-static methods
Previous-year question practice database
Try it
Pick an option and check your answer. The full worked answer is below either way.
Answer
Exam answer
(c) non-static.
Explanation
A non-static (instance) method belongs to each individual object, so an object must exist before it can be called: ob.display(). A static method belongs to the class itself and is called on the class name, as in Math.sqrt() — no object needed. void describes what a method returns, not how it is called, so it is not an answer to this question.
In words
non-static.
More from Encapsulation
Which of the following is NOT an access specifier?2026Post office is an example for __________ access specifier.2025The access specifier that gives least accessibility is __________.2024Assertion (A): Static method can access static and instance variables.
Reason (R): Static variables can be accessed only by static method.2024A mechanism where one class acquires the properties of another class:2023A method which is a part of a class rather than an instance of the class is termed as:2023