You are not logged in.

#1 2015-06-10 10:20:29

husnain
User RankUser RankUser RankUser RankUser RankUser Rank
Administrator
From: Chichawatni,Pakistan
Registered: 2014-10-03
Posts: 8,129
Website

Java Boolean:

Question:
int index = 1;
Boolean [] test = new Boolean[3];
Boolean data = test[index];

What is the result?

Option A):
data has the value of null
Option B):
The code will not compile
Option C):
data has the value of false
Option D):
data has the value of true

Correct Answer is Option C):
data has the value of false


You cannot discover the new oceans unless you have the courage to lose the sight of the shore.

2015-06-10 10:20:29

Advertisement
Ads By Google

Re: Java Boolean:



Board footer