

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Main points of this past exam are: Output is Produced, Unix Command, Working Directory, Html File, Correctly Written, Java Class, Produce a File
Typology: Exercises
1 / 2
This page cannot be seen from the preview
Don't miss anything!


this&that thisRthat This2That integer
This-That this_R_that 2_This_That this1+that
int a = 5; int b = 2; int c = -2;
boolean z = exp1 && exp2 || exp3; System.out.print( "z = " + z ); ____________________ z = !exp3 || exp2 && exp1; System.out.print( "z = " + z ); ____________________
b = --b + ++a % 4 * c++ * 2; System.out.print( "a = " + a ); ____________________ System.out.print( "b = " + b ); ____________________ System.out.print( "c = " + c ); ____________________
int a = 1; int b = 2; int c = 5;
System.out.println( a + (b + c) + " = " + (a + b) + c );
System.out.println( (a + b + c) + " = " + a + b + c );
System.out.println( (a + b) + c + " = " + a + (b + c) );
if ( (a > 0) || (b > 0) ) { if ( a > b ) { System.out.println( "A" ); } else { System.out.println( "B" ); } } else if ( (a < 0) || (b < 0) ) { System.out.println( "C" ); } else { System.out.println( "D" ); }