Induslogic Paper Aptitude - General
Induslogic Test Sample Question What is the output of the following code when compiled and run? Select two correct answers.public class Question01 { public static void main(String[] args){ int y=0; //line 1 int x=z=1; //line 2 System.out.println(y+","+x+","+z); //line 3 }}A. Prints 0,1,1 B. Error during compilation at line 1 C. Prints 0,0,1 D. Error during compilation at line 3 E. Error during compilation at line 2 Question 2. Select three correct statements.A. The garbage collection thread cannot outlive the last user thread. B. The garbage collection can be forced by invoking System.gc()....