






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
Material Type: Exam; Class: OBJECT-ORIENTED PROG I; Subject: Computer Science; University: University of Maryland; Term: Spring 2005;
Typology: Exams
1 / 11
This page cannot be seen from the preview
Don't miss anything!







Sugar wall&8 U_k 3Abc
String value = "Baseball"; value = "GoodBye";
String k; System.out.println(k.length());
int y = 20; int x = 40; double d = 30.5; if (x > 5 && d < 30 && (++y > 5)) { x++; } System.out.println("X: " + x); System.out.println("Y: " + y); System.out.println("D: " + d);
int w = 10, x = 20, y = 30; boolean b;
int y = x;
String music = null; boolean b = music.equals(null);
int a = 10, b = 21; int c = b % 2; b += a; a *= 2; boolean d = true && !(a > 10);
using a separate call to JOptionPane. You may assume that all inputs are valid.