how to create thread in java?
Answer Posted / bijoy kumar baral
There is two ways for creating Thread in Java:
1.Extending Thread class
2.Implementing Runnable Interface
Second one is much more benificial than 1st one,as we can
able to avoid the overriden methods.
Is This Answer Correct ? | 5 Yes | 1 No |
Post New Answer View All Answers
Why we use classes in oop?
What is oops concept with example?
What is the full form of oops?
There are two base class B1,B2 and there is one class D which is derived from both classes, Explain the flow of calling constructors and destructors when an object of derived class is instantiated.
What is polymorphism in oops?
Explain the concepts involved in Object Oriented programming.
How to handle exception in c++, For example in a functions i am assigning memory to some variables and also in next instructions in am dividing one variable also. If this functions generates a error while allocating memory to those variable and also while dividing the variable if i divide by zero then catch block how it will identify that this error has cone from perticular instruction
What is overriding in oops?
INSTANCE FIELDS DECLARED private ARE ACCESSIBLE BY THE METHODS ONLY.CAN WE CHANGE THE private FIELD OF AN OBJECT IN A METHOD OF SOME OTHER OBJECT OF THE SAME CLASS?
What is an interface in oop?
Why multiple inheritance is not possible?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
What is object and example?
Why do we use polymorphism?
What is Difeerence between List obj=new ArrayList(); and ArrayList obj=new ArrayList()?