how to create thread in java?
Answer Posted / gurpreet singh
there are two ways to creat the thread:
1. by implement Runnable interface
2. by extends Thread
NOW which one is batter apprach
implement Runnable Thread is batter apporach
because in inheritance does not allow its
class to extends more than one...
Where we use mutiple inheritance then we creat
a Thread by using implement runnable interface
that why its batter apporach
ok concept is understood.
Gurpreet singh
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
How do you answer polymorphism?
Can a varargs method be overloaded?
What type of loop is a for loop?
Why do pointers exist?
What does I oop mean?
What is object in oop with example?
Which language is pure oop?
What is use of overloading?
What is difference between polymorphism and inheritance?
What are the features of oop?
What is persistence in oop?
what is different between oops and c++
What does sksksk mean in text slang?
Question: Write a program that prints a paycheck. Ask the program user for the name of the employee, the hourly rate, and the number of hours worked. If the number of hours exceeds 40, the employee is paid “time and a half”, that is, 150 percent of the hourly rate on the hours exceeding 40. Be sure to use stepwi se refine ment and break your solution into several functions. Use the int_name function to print the dollar amount of the check.
what is the sylabus for priliminaries?