Answer Posted / himanshu kapoor
IF this question is that in how many ways we can use the thread in java?, then answer is that there are two ways
1. by implementing Runnable interface and
2. by inheriting Thread (abstract class)
Is This Answer Correct ? | 24 Yes | 3 No |
Post New Answer View All Answers
How do you escape in java?
What is the difference between an array and an array list?
What is collection class in java?
What happens if we don’t define serial version uid?
What are aggregate functions explain with examples?
What is the difference between stored procedure & function?
How is a structure different from array ?
What was java originally called?
When is the finally clause of a try-catch-finally statement executed?
What is an object's lock and which object's have locks in java programming?
What is the numeric promotion?
What is the scope or life time of instance variables?
Can we use both this () and super () in a constructor?
What's the difference between int and integer in java?
What is the purpose of a default constructor?