. | |
What is the final value of s3 in the following?
String s1 = "Mt."; String s2 = "St. Helens"; String s3 = s1 + s2; s2 = "Rainier"; |
|
notes and answers |
. | |
What is the value printed by the following?
int[] nums; //line 1 nums[0] = 10; //line 2 nums[1] = 11; //line 3 nums[0] = nums[1]; //line 4 System.out.println(nums[0]); //line 5 |
|
Some compilers will give you an error: "local variable may not have been initialized." If not, then there would be a run-time error. |
. | |
StudentData stu; //line 1
stu = new StudentData("Rodney", 03277); //line 2 boolean enrolled = stu.checkStatus(); //line 3 stu.printout(); //line 4 |
|
notes and answers |
. | |
Assuming that a string variable named fun
has been declared and initialized, write an expression which puts the
first character of that string into the variable first.
char first; first = fun.charAt(0); |
|
notes and answers |
. | |
In Homework #1, what are the arguments of the method normalize? |
|
notes and answers |
. | |
If Homework #1 is too much for you, you may... |
|
notes and answers |
. | |
(free bonus point)
The material in the Mathematical Background handout was... |
|
notes and answers |