how to create thread in java?
Answer Posted / bijoy
Their are specifically two different approaches to create
threads in Java:
1.By Extending thread class.
2.By Implementing runnable interface.
| Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
What is encapsulation in oop?
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
write a code for this:trailer recordId contains a value other than 99, then the file must error with the reason ‘Invalid RECORD_ID’(User Defined Exception).
What does I oop mean?
Can enum be null?
What makes a language oop?
What is abstraction example?
What is the example of polymorphism?
What is polymorphism and its types?
What are the two different types of polymorphism?
to find out the minimum of two integer number of two different classes using friend function
Can you inherit a private class?
What is the difference between encapsulation and polymorphism?
How do you achieve polymorphism?
What is encapsulation selenium?