Hi all look at the code below
public class Question08 {
public static void main(
String[] args) {
Question08 q08 = new Question08();
q08.doSomething();//line 1
Thread.sleep(20000);
}
public void doSomething(){
Object[] objArray = new Object[2];
for(int i=0;i<objArray.length;i++){
objArray[i] = new Object();
}
}
}
The answer is 3 can anzone pls explain me the reasons thanx in advance.
Nisheeth