Bratt Locke

Greenhorn
+ Follow
since Oct 09, 2000
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Bratt Locke

It is available at Sun' web site.
You can use a DAO with session beans, JSPs, or servlets. See Figures 1.5 and 1.7 of the Blueprint.
Please advise me what is the document mentioned in this thread: jbp1_0_1.docs? How can I get a hold of it?
Thanks,
Bratt
Hi, someone please clarify my confusion:
Java RMI provides dynamic class loading with RMIClassLoader class, but does not provide distributed transaction management.
I am not sure if my understanding is correct. I highly appreciate your help on this.
Sincerely,
Bratt
24 years ago
Please see the following code:
int j;
for(int i=0;i<14;i++) {
if(i<10) {
j = 2 + i;
}
System.out.println("j: " + j + " i: " + i);
}
What is wrong with the above code?

a. You cannot declare integer i inside the for-loop declaration.

b. Nothing.

c. Integer "j" is not initialized.

d. The syntax of the "if" statement is incorrect.
I could not find anything wrong with the code. But the compiler questioned the for-loop.
Please help. Thanks.
Bratt
Which is the correct choice?
public int manip(int x) {
int count = 3;
try {
count += x;
m1(x);
count++;
}
catch(Exception e) { count -= x; }
return count;
}
When manip(2) is invoked, method m1() throws an ArithmeticException. What does manip() return?
a. 3
b. 4
c. 5
d. 6
e. The system will exit
Answer: a(?)