Java Programming Language MCQ Java Control Flow
⚠ Report ✓ Question Verified Copy Link
public class Test{ public static void main(String args[]){ int i, j=1; i = (j>1)?2:1; switch(i){ case 0: System.out.println(0); break; case 1: System.out.println(1); case 2: System.out.println(2); break; case 3: System.out.println(3); break; } } }
Learn More MCQ Questions from Java Programming Language MCQ Java Control Flow