• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
Which of the following statements is true about an interface in Java?
جاوا میں انٹرفیس کے بارے میں درج ذیل میں سے کون سا بیان درست ہے؟
  1. It can contain instance variables
  2. It can have constructors
  3. It can have abstract methods and default methods
  4. None of these
Explanation
  • Interfaces in Java can declare abstract methods (without a body) and default methods (with a body).
  • They cannot have constructors or instance variables.
  • Related MCQs

    پورے کمپیوٹر سسٹم کو مربوط کیا جاتا ہے؟
    1. ALU
    2. Register
    3. Control Unit
    4. Both A and C
    اس سوال کو وضاحت کے ساتھ پڑھیں

    ریم کونسی میموری ہے؟
    1. Permanent
    2. Volatile
    3. Primary Memory
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    ایم آئی سی آر کا مطلب کیا ہے؟
    1. Magnetic Ink Code Reader
    2. Magnetic Ink Cases Reader
    3. Magnetic ink character recognition
    4. None of these
    اس سوال کو وضاحت کے ساتھ پڑھیں

    انٹرنیٹ کنکشن کے لیے کون سا آلہ ضروری ہے؟
    1. Joystick
    2. Modem
    3. CD drive
    4. NIC card
    اس سوال کو وضاحت کے ساتھ پڑھیں

    جنک ای میل کا دوسرا نام کیا ہے؟
    1. Spoof
    2. Spill
    3. Spam
    4. Spat
    اس سوال کو وضاحت کے ساتھ پڑھیں

    All Rights Reserved © TestPointpk.com