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
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.
Why is destructor used?
Write a program to sort the number with different sorts in one program ??
What do you mean by Encapsulation?
What is difference between abstraction and encapsulation?
How to hide the base class functionality in Inheritance?
Can we create object of interface?
What is the full form of oops?
Can abstract class have normal methods?
What are main features of oop?
What is encapsulation in oop?
What is inheritance in simple words?
How long to learn object oriented programming?
What do you mean by abstraction?
What is the difference between abstraction and polymorphism?