what is the replacement method of stop() of thread
Answers were Sorted based on User's Feedback
Answer / swamireddy
SUSPEND()
because one thread apply suspend()
function.this particular thread is automatically
killed.upto when the particular thread is apply the resume
() function.
| Is This Answer Correct ? | 6 Yes | 0 No |
Answer / swamireddy
SUSPEND()
because one thread apply suspend()
function.this particular thread is automatically
killed.upto when the particular thread is apply the resume
() function.the thread is running.
| Is This Answer Correct ? | 7 Yes | 2 No |
Answer / ravikiran chhaduvula
wait() method from java.lang.Object class is the
replacement for the legacy stop() method
| Is This Answer Correct ? | 4 Yes | 4 No |
Answer / mahesh
their is no replacement for stop(),
but their is a alternative approach is their by using
semaphore boolean conditions.
| Is This Answer Correct ? | 1 Yes | 1 No |
Answer / domnic
the answer is join();
join makes your program wait till the thread upon which it
is called dies.This functionality is same as what done by
the deprecated method stop();
| Is This Answer Correct ? | 2 Yes | 5 No |
What is the synonym of string?
What is the flag in java?
Explain the use of sublass in a java program?
What is the difference between an object-oriented programming language and object-based programming language?
How many days will it take to learn java?
What is an anonymous class in java?
What do heavy weight components mean in java programming?
What do you mean by flow of struts?
When do we need to use internal iteration? When do we need to use external iteration?
What is a stack class in java ?
0 Answers Akamai Technologies,
Is it possible to write JAVA program without including any of the packages,such as "import java.io.*"; bcoz I instantly wrote a code without "import..." statement and runned the program on command Line & it worked. the code is: class Person { String name; int age; Person(String s,int a) { name = s; age = a; } accept() { System.out.println(name+"Hi!!!!!"); System.out.println(age); } } class Demo { public static void main(Strings args[])throws IOException { String name = args[0]; int age = Integer.parseInt(args[1]); Person p = new Person(name,age); p.accept(); } }
what is the purpose of "virtual"?