What is the functionality of the following statement? String str[5] = ,String(“Programming”), String(“CS201”)-;?

(A) Default constructor will call for all objects of array
(B) Parameterized constructor will call for all objects of array
(C) Parameterized constructor will call for first 2 objects and default constructor for remaining objects
(D) Default constructor will call for first 3 objects and Parameterized constructor for remaining objects

»Important Links:

Latest Jobs in PakistanGovt Jobs in PakistanPrivate Jobs in Pakistan
NTS JobsPPSC JobsFPSC Jobs
Teaching JobsNADRA JobsBank Jobs
English McqsGeneral Knowledge McqsPak Studies Mcqs
Current Affairs McqsCurrent Affairs Mcqs PDFCurrent Affairs of Pakistan
Books PDFNotes PDFIslamic Studies Mcqs

Leave a Reply

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

error: Content is protected !!