In how many ways we can the thread? in java

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


Please Help Members By Posting Answers For Below Questions

How do you escape in java?

572


What is the difference between an array and an array list?

498


What is collection class in java?

540


What happens if we don’t define serial version uid?

563


What are aggregate functions explain with examples?

517






What is the difference between stored procedure & function?

541


How is a structure different from array ?

577


What was java originally called?

503


When is the finally clause of a try-catch-finally statement executed?

495


What is an object's lock and which object's have locks in java programming?

563


What is the numeric promotion?

491


What is the scope or life time of instance variables?

652


Can we use both this () and super () in a constructor?

541


What's the difference between int and integer in java?

529


What is the purpose of a default constructor?

574