• 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. HTTPS (SSL/TLS)
  2. DHCP
  3. FTP
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

ایس کیو آر کا مکمل نام کیا ہے؟
  1. Structured Query Report
  2. Simple Query Reporter
  3. Structured Query Reporter
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

جی آئ یو کا مطلب کیا ہے؟
  1. Graphical Use Interface
  2. Graphical User Interface
  3. Graphic User Interface
  4. None of these
اس سوال کو وضاحت کے ساتھ پڑھیں

مندرجہ ذیل میں سے کون سا اینٹی وائرس سافٹ ویئر کی قسم نہیں ہے؟
  1. Chrome
  2. Norton
  3. McAfee
  4. Avast
اس سوال کو وضاحت کے ساتھ پڑھیں

مندرجہ ذیل میں سے کون سا سٹوریج ڈیوائسز زیادہ سے زیادہ ڈیٹا کو محفوظ کر سکتا ہے؟
  1. Floppy Disk
  2. Hard Disk
  3. Compact Disk
  4. None of the above
اس سوال کو وضاحت کے ساتھ پڑھیں

All Rights Reserved © TestPointpk.com