SSC-IMD-SA-CS-MOCK-01 – Question 15

Question:

What is the primary characteristic of an ‘Abstract Class’ in Java?
जावा में ‘एब्सट्रैक्ट क्लास’ (Abstract Class) की प्राथमिक विशेषता क्या है?

Options:

  • It cannot be directly instantiated using the new operator and can contain abstract and concrete methods
  • It cannot contain any static methods
  • It cannot be extended by any other class
  • It can only contain variables without methods
  • इसे new ऑपरेटर द्वारा सीधे इंस्टेंटिएट नहीं किया जा सकता और इसमें एब्सट्रैक्ट और कंक्रीट दोनों मेथड हो सकते हैं
  • इसमें स्टैटिक मेथड नहीं हो सकते
  • इसे इनहेरिट नहीं किया जा सकता
  • इसमें केवल वेरिएबल हो सकते हैं

Correct Answer: a)

Explanation:

An abstract class in Java is declared with the abstract keyword, cannot be instantiated directly, and serves as a base class template requiring subclasses to implement its abstract methods.
जावा में एब्सट्रैक्ट क्लास का ऑब्जेक्ट सीधे नहीं बनाया जा सकता, इसका उपयोग बेस क्लास के रूप में सबक्लास को दिशा देने के लिए किया जाता है।

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top