Advertisements
Advertisements
प्रश्न
A method is invoked through an:
पर्याय
Object
System
Parameter
None
MCQ
उत्तर
Object
Explanation:
- In Java, non-static methods are called using an object from the class to which they belong.
- An object is an instance of a class that provides access to the class's methods and variables.
- Static methods are called with the class name, whereas most instance methods need object instantiation.
shaalaa.com
या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?