gunjan deogam

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

Recent posts by gunjan deogam

Hi all,

Please can any one tell me the best Book for preparing SCBCD.
thanks in advance.
hello every body,
My question is how can we embed any application with jsp e.g. media player.
Thanks all of you. But I read that HttpSessionActivationListener configure in DD.
Please can any one clear me which listener are configure in DD and which are not?
If we have a fully loaded war file and we want to use some tag define inside that war file, then how can we reuse tld, tag, or classes define inside that war file to our new web application.
why only public static void main(String arg[]) use in java, why there is void return type, why not int, float etc.
14 years ago
class Chicks {
synchronized void yack(long id) {
for(int x = 1; x < 3; x++) {
System.out.println(id + " ");
Thread.yield();
}
}
}

public class ChicksYack implements Runnable {
Chicks c;
public static void main(String args[]){
new ChicksYack().go();
}
void go() {
c = new Chicks();
new Thread(new ChicksYack()).start();
new Thread(new ChicksYack()).start();
}

public void run() {
c.yack(Thread.currentThread().getId());
}
}

please tell me anyone the output of above code, and explain why.
congraulation for your success, it give me motivation and the people who are going for SCJP
15 years ago