Which of the following if statements correctly executes all three following commands only when the if condition is true?I.if ( x < 10) int ans; ans = x * 90; System.out.println( "answer: " + ans);II.if ( x < 10){ int ans; ans = x * 90; System.out.println( "answer: " + ans); }III.if { ( x < 10) int ans; ans = x * 90; System.out.println( "answer: " + ans);}
II only
I, II and III
I only
I and III
III only