Jigar Rathod

Greenhorn
+ Follow
since Oct 27, 2012
Jigar likes ...
Eclipse IDE Fedora Java
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
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jigar Rathod

tes/xcom folder is having 3 things :

A.java ; A.class ; B.java

------A.java

package xcom;
public class A{}

-------B.java
paclage xcom;
public class B extends A{}


now this thing works if you are in test folder
javac -classpath . xcom/B.java

i modified a bit
javac -classpath xcom/A.class xcom/B.java
this doesn't work
why???
No matter which thread gets first chance flag=0
So output will start with yo

If we select Fragment-1 : synchronized void chat(long id)
output would be yo yo dude dude

If we select Fragment-2 : void chat(long id)
output will start with yo for sure.!!!

So F option is correct.!