[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

JAVA Programming :: Basic Concepts - Discussion

Home > JAVA Programming > Basic Concepts > MCQs Questions Discussion

16 / 64

Given the following constructor what will element 1 of mycon contain?

MyCon(){
   int[] mycon= new int[5];
}

A0

Bnull

C""

DNone of these options

Answer: Option (Login/Signup)

Show Explanation

Hence, mycon[]={0,0,0,0,0}; will be set as default, if nothing is assigned to the array.

Therefore, correct option is A 

Asked In :: Virtusa

Post Your Answer Here:     

Reply    
Rate This: +0 -0
    Report


Report Error

Please Login First Click Here