Vas Golla

Greenhorn
+ Follow
since Aug 09, 2007
Merit badge: grant badges
For More
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 Vas Golla

Hi,
I have started to use UCP recently, so I may not be able to answer your question. But I have a question though. Is UCP stable in terms of threading. I see an army of threads created every 30 sec. This 30 sec is the propertyCycle setting.

So the threads gets spun so huge a number that if my connections are in pool even then they create these UP-worker-threads.

Any idea or suggestions?

Thanks
Iam having a doubt that are a,b and c are references or instances?
new Thread(b).start();
will work if used Runnable.
You tried to call start() on a Runnable where as start() is to be from a Thread.
http://www.developer.com/java/other/article.php/3323661

"You might use varargs to allow adding one to many objects to a collection that you have defined by using a single add method call."

Thanks Konkana!!
even i came to know that only Objects can be varargs

in fact iam new too to java 5
public class MyClass {

public static void main(String args[]){

Integer i= new Integer(2);
//==================NOTE THIS============
Long l= new Long(21);
//long l = 21;
//int i = 100;

MyClass c = new MyClass();

c.methodx(i);

c.methodx(l);
}

void methodx(Integer...y){
System.out.println("long");
}

void methodx(Long...x){
System.out.println("Integer");
}
}
Check this and figure out...

public class MyClass {

public static void main(String args[]){

Integer i= new Integer(2);
//int i = 100;
MyClass c= new MyClass();
c.methodx(i);
long l = 2l;
c.methodx(l);
}

void methodx(long...x){
System.out.println("long");
}
//void methodx(int...x){
//System.out.println("Integer");
//}
}
Both the methods are same as far as varargs usage is concern. ( since both has only 1 agrs...