SCJP 6 | SCWCD 5 | Javaranch SCJP FAQ | SCWCD Links
SCJP 6,SCWCD 5,SCBCD 5
Failure is not an option.
SCJP 6,SCWCD 5,SCBCD 5
Failure is not an option.
jayalakshmi charugundla wrote:Ankit I ran the program what you have given there. But now it is displaying something like this,
run:
Exception in thread "main" java.lang.VerifyError: (class: Account, method: <init> signature: ()V) Constructor must call super() or this()
at Job.main(Job.java:38)
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
jayalakshmi charugundla wrote:
I m sorry I couldnt find out any difference btw the two programs. How is it possible?
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
SCJP 6,SCWCD 5,SCBCD 5
Failure is not an option.
SCJP 6,SCWCD 5,SCBCD 5
Failure is not an option.
jayalakshmi charugundla wrote:Hi,
I ran the program again n now it is showing the correct output. I have replaced the value 2 where actually it was in the for loop . But it is displaying 4 as the
output.
As I know, join() stops the current loop iteration(ie. thread1) and will be joined to the thread2 after finishing its (thread2) work. That means first thread 2 finished its work. Somewhere I have seen second thread1 finisned its job before the first one.
Am I right?
Siva I didnt understand the program.
If you dont mind could you please explain it easily about join() and this program.?
SCJP 6,SCWCD 5,SCBCD 5
Failure is not an option.
SCJP 6,SCWCD 5,SCBCD 5
Failure is not an option.
Consider Paul's rocket mass heater. |