Appu Mehta

Greenhorn
+ Follow
since Jan 06, 2009
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 Appu Mehta

Hi,
Can anyone suggest me how to write a PL-SQL code in java class.
Regards,
Appu
12 years ago
Hi,
What would be the most efficient way to read/write data to the big files?
Regards,
Appu
12 years ago
Thanks for your replies.
which is the most popular/recommended book for the preparation of
- Sun Certified Web Component Developer (SCWCD)
Regards,
Appu
Hi,
i am new to java and ranch. I am not sure if this is the right forum to post such a query.
I have done scjp. Now, what is the next certification. Actually the link below provides a set of options

http://www.sun.com/training/certification/java/index.xml

and I am not sure.


I want to follow the track of solution/Technical architect.

Please guide

Regards,
Appu

thanks puneet, Ankit, Geeta and all.
i am able to get second question. But 1st question i still have doubts.
As per kathy sierra study guide, we can start a thread by two ways.
1.


2.


So, in ques 2

starts a thread and executes run() method of class B. I got it.

But in ques 1,

should start run of B() because it is the runnable target passed as parameter to a new thread instance A as per point 2 mentioned above from Kathy Sierra.

i am confused .Please help
Source : Dan Chisholm's Mock Test
Question

What is the result of attempting to compile and run the program?

a. Prints: false,false
b. Prints: false,true
c. Prints: true,false
d. Prints: true,true
e. Compile-time error
f. Run-time error
g. None of the above


sb1 & sb2 are unequal but their hashcodes may be equal or may not be equal. so b2 will be true or false, you can't say.
my understanding is if the hashcodes of two objects are unequal then the objects can't be equal but if the hashcodes are equal it doesn't necessarily means objects are equal.

Please help.

I could not understand the logic behind the answers for the following two questions.Please help.
Answers are provided in BOLD.
Source Dan Chisholm's Mock test.
Thanks and Regards,
Appu.

Question


What is the result of attempting to compile and run the program?

a. Prints: A
b. Prints: B
c. Prints: AB
d. Prints: BA
e. Compile-time error
f. Run-time error
g. None of the above

--------------------------------------------------------------------------------

Question


What is the result of attempting to compile and run the program?

a. Prints: T1T1T1
b. Prints: T1T1T2
c. Prints: T1T2T2
d. Prints: T1T2T3
e. Prints: T1T1T3 f. Prints: T1T3T3
g. Compile-time error
h. Run-time error
i. None of the above
Thanks Ankit....
other good links apart from those mentioned in javaranch..
Regards,
Appu
Hi,
i am soon to appear for scjp.Apart from links in the site, can you please suggest some good links for mock tests.
Thanks and regards,
Appu