What is the output of this Java program? class Test{ int i=1; } public class main{ public static void main(String args[]){ Test t…
What is the output of this Java program?
class Test{
int i=1;
}
public class main{
public static void main(String args[]){
Test t;
System.out.println(t.i);
}
}From the Combined Bank Assistant Programmer (CSE) 2020 – Preliminary (DU) exam, question 26 of 47.