pradeepta chopra

Ranch Hand
+ Follow
since Jul 05, 2008
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 pradeepta chopra

Congrats Ankit
i was waiting to congratulate you on your as expected great score
12 years ago
hi all,
What do you mean by illegal sources because now that i have passed the exam ,many of my friends who got some big scores in the exam are saying that they just did the old papers and got through it,now i dont know where they get it from
12 years ago
hi all,
What do you mean by illegal sources because now that i have passed the exam ,many of my friends who got some big scores in the exam are saying that they just did the old papers and got through it,now i dont know where they get it from
12 years ago
hi all,
Passed scjp 5.0 with 70% of score on 10th of nov.
VEry disappointed with the score

WELL i had a bad experience with the test centre ,as there was lot of disturbance at the centre.Make sure,you choose a good and reputed centre for the test and check for the enviornment during the test,because it can really affect your concentration.
thats all,the paper seemed easy but i got just 70%.Dont know what went wrong
Anyways,working with all you ranchers was a great experience in itself.thanks for all your support
12 years ago
Now it says
cannot find symbol
symbol:class FOO

thanks ankit,
i have read HeadFirst java before this but skipped this chapter.i';; go through that now
K&B states"
When the Thread waits,it temporarily releases the lock for other threads to use,but it will nedd it again to continue execution.




Once the code has acquired lock on aObject it enters the try block and once wait() is executed,it is added to the waiting queue and the lock is released for other threads.


it waits until it is notified using


now what for the thread needs the lock again??has it left the synchronized code or not??

or it means that there may be other statements in the synchronized block to execute for which it again needs the lock
hi all,
although i have read the K&B development chapter,but i still have confusion in this chapter's Questions.
Can anybody provide a link to a good tutorial for this??
i have compiled your post's code with return; and void modifications ,it compiles fine and no Exception is thrown.
thats because you have declared
public static int main()

and that requires you to return a value
given the following directory structure



current directory is bin
when i run the following command it gives an error

javac -cp test\myApp test\GetJar.java

Error:cannot access Foo.java
Bad class file test\myApp\Foo.java
file does not contain class Fooplease remove or make sure it appears in the current subdirectory of the classpath.



what does the above error mean??
hi GaneshKumar,
you probably have done a typing mistake.
make sure that it is return; //no space between return and;
Ofcourse i have run the code.
but i dont get any Exception,check for the directory and its path where you are storing the file
Moreover addition also results in an integer which cant be assigned to a char.


correct me if i am wrong