Ketan

Greenhorn
+ Follow
since Dec 06, 2000
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Ketan

Hi,
I have read that one way to package an ejb application is to use an ear file(enterprise application archive resource file). An J2EE module can also be a WAR(web archive), a RAR(resouce archive), an ejb-jar file or a client jar file. Are there any advantages of using one method of deploying over another ? Thanks.
Hi,
Recently Sun made some changes to the SCJP exam. I tried the Jtips mock exam. Does this mock exam reflect the new format of the exam ? Is this(mock exam) an example of the code intensive type of questions asked in the new format of the exam ?
Where can I find more mock exams which uses the new format ? Thanks.
Hi,
The following question is from Deepak's Sample Java Mock Exam Simulation.
class TestThread extends Thread {
public void run( ) {
System.out.println("Starting");
suspend( );
resume( );
System.out.println("Done");
}
public static void main(String args[ ]) {
TestThread tt = new TestThread( );
tt.start( );
}
}
Why is it that the string "Starting" is printed ? Why doesn't the resume call have any effect on the program ?
Thanks !
Regards
Ketan
Hi,
This questions is from JXam Mock exam.
The question is as follows:
What is displayed when the following is executed.
String s1 = "aaa"
s1.concat("bbb");
System.out.println(s1);
The string "aaa" is printed.
Could someone provide me an explanation as to why "aaa" is the answer. Is it because the String is immutable ?
When I changed the print statement to System.out.println("aaa".concat("bbb")); it printed "aaabbb".
Thanks.
Regards
Ketan