English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

2 answers

i dont get it from thread to thread..
but if u mean from a function to another function, then u should declare the variable as static

2007-03-14 03:08:00 · answer #1 · answered by abd 5 · 0 0

actually the thread is one of the class.
So we can allocate the memory in the same class. or assign the another object to this class variable.
class summa extends Thread
{
summa s=new summa();
}
that's it.

2007-03-14 03:18:15 · answer #2 · answered by sridhar b 2 · 0 0

fedest.com, questions and answers