What are the different ways of creating thread?
Answer / Rajni Singh
"1. By extending Thread class and overriding its run() method.n2. By implementing Runnable interface and providing an implementation for the run() method.n3. By using ExecutorService and submitting a Callable or Runnable task to it (e.g., by invoking execute(Runnable) or submit(Callable))."
| Is This Answer Correct ? | 0 Yes | 0 No |
What are peerless components?
Is .net better than java?
What is the purpose of a statement block?
how cani read a command line argument?(usingfile object).
Why collection is called framework in java?
What is the function of compareto in java?
How do you convert bytes to character in java?
What is difference between fail-fast and fail-safe?
What is double data type?
Why do we need array in java?
int a=1; float b=1.0; System.out.println(a==b);
13 Answers CTS, Honeywell, McAfee,
How do you reverse a word in java?