how to create thread in java?
Answer Posted / rahul madanan
There are two methods to create thread in java :
(1). By extending the Thread class.
(2). By implementing the Runnable interface.
| Is This Answer Correct ? | 6 Yes | 1 No |
Post New Answer View All Answers
What is difference between polymorphism and inheritance?
What is polymorphism used for?
What is a class oop?
Why do pointers exist?
write a program using c++ to implement single contiguous memory mangement techniques.display the content of the main memory after yhe allocation of jobs and percentage of the wastage of the main memory
What are the two different types of polymorphism?
can inline function declare in private part of class?
What are the 3 pillars of oop?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
What is this pointer in oop?
What is object-oriented programming? Webopedia definition
What is the advantage of oop over procedural language?
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 the benefit of oop?