• Call Us : 03082533000 (WhatsApp)
  • Email Us : TestPointpk.com@gmail.com
Sticky Note
What is the function of a constructor in Java?
جاوا میں کنسٹرکٹر کا کیا کام ہے؟
  1. It is used to call other methods.
  2. It initializes an object when it is created.
  3. It is used to delete objects.
  4. None of these.
Explanation

A constructor is automatically called when an object is instantiated, setting initial values.

Unlike regular methods, it has the same name as the class and does not have a return type.

Related MCQs

آپریٹنگ سسٹم کیا ہوتا ہے؟
  1. Personal software
  2. System software
  3. Application software
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

دوسری نسل کے کمپیوٹر میں مندرجہ ذیل میں سے کون سی ٹیکنالوجیز استعمال ہوئی؟
  1. Vacum Tubes
  2. Transistors
  3. Integrated circuits
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

کون سی میموری سب سے تیز ہوتی ہے اور عام طور پر سی پی یو کے اندر موجود ہوتی ہے؟
  1. Main Memory
  2. SRAM
  3. Cache Memory
  4. DRAM
اس سوال کو وضاحت کے ساتھ پڑھیں

مندرجہ ذیل میں سے کون سا نان وولیٹائل اسٹوریج ڈیوائس ہے جو بجلی بند ہونے کے بعد بھی ڈیٹا محفوظ رکھتا ہے؟
  1. ROM
  2. RAM
  3. CPU
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

مندرجہ ذیل میں سے کون سی غیر مستحکم میموری ہے؟
  1. RAM
  2. ROM
  3. Cache
  4. Both A and C
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com