Vsam hr

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

Recent posts by Vsam hr

Hi,

I tried this code.



The output printed is 10 and not 11. After first increment value gets incremented to 10. That is understood. But for post increment even the increment happens after assigning it to variable on left side of '=', the incremented value should get stored in 'i' thereby making it 11. In C/C++ , it prints 11 as expected but how come in Java the value remains 10.
Please help clear this doubt

Thanks
14 years ago
Hi,
I just tried the following try-catch-finally code. When i executed it, the output printed was
HELLO
4

My question is When does the 'finally' block exactly get executed? Becuase it prints all that is there is 'try' block skips the 'return 2' statement and executes 'finally'. How does it skip that particular statement? I understand that finally is always executed even when there is exception but managing to skip exactly that particular 'return' statement in 'try' block is what puzzles me..



Is there some priority stuff in this meaning... does try-catch-finally block has more priority than a 'return' statement?

Thanks
14 years ago
I have written a I/O code wherein the I/O is done using


The File which I am reading from contains large no. of records.Each records contains a few columns. On reading the records and am modifying them and writing them to the Output file. I am using while loop for reading each record.

The problem arises for the last record. When writing the last record into the output file, only few columns get written. The entire last record isnt written. This causes problems when i want to read this output file as the last record is not complete.
I am also closing the BufferedWriter using bw.close();

Please help in explaining why only the last record isnt being completely written.
Thanks in advance
14 years ago
Hi,
I am having trouble cracking up EJB concepts. I can somehow mange to code but conceptually I dont find it satisfying. What are contents in this book that can help me in clearing my EJB concepts on only from SCEA perspective but otherwise??
Thanks
I just passed my SCJP exam with 65%. I heard that on the certificate it just mentions "PASS" and nothing else. Is it so? I had studied just two weeks for the exam and gave it today as i couldnt afford to give more time to it due to my college schedule. But now am feeling a little nervous about my score. How important is it to have a good score in SCJP. Does it have any effect while getting a job?? Thanks in advance
14 years ago