Advertisement Remove all ads

What Will this Code Print ? Int Arr()=New Int 5; System.Out.Println(Arr); - Computer Applications

Advertisement Remove all ads
Advertisement Remove all ads
MCQ

What will this code print ?

int arr[]=new int[5];
System.out.println(arr);

Options

  • 0

  • value stored in arr[0]

  • 0000

  • garbage value

Advertisement Remove all ads

Solution

garbage value

Concept: String Array
  Is there an error in this question or solution?
Advertisement Remove all ads
Advertisement Remove all ads
Share
Notifications

View all notifications


      Forgot password?
View in app×