how to create thread in java?
Answer Posted / teja
We r creating threads in java by extending d thread class
or by implementing runnable interface.
Syntax for creaton of thread is:
Thread var=new Thread(Runnableobject,"Stringname");
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
what type of question are asked in thoughtworks pair programming round ?
Question: Implement a base class Appointment and derived classes Onetime, Daily, Weekly, and Monthly. An appointment has a description (for example, “see the dentist”) and a date and time. Write a virtual function occurs_on(int year, int month, int day) that checks whether the appointment occurs on that date. For example, for a monthly appointment, you must check whether the day of the month matches. Then fill a vector of Appointment* with a mixture of appointments. Have the user enter a date and print out all appointments that happen on that date.
Plese get me a perfect C++ program for railway/airway reservation with all details.
What is the use of oops?
write a program that takes input in digits and display the result in words from 1 to 1000
What is Difference Between Inheritance and creating object and getting data? means Class A extends B{ B.getMethod();} (OR) Class A{ b obj=new B(); obj.getMethod(); }
What are the data types in oop?
Can an interface inherit a class?
What is overloading in oop?
What is the important feature of inheritance?
What are different types of JVM's? for example we use dalvik jvm for android then what about the remaining operating systems?
Why is it so that we can have virtual constructors but we cannot have virtual destructors?
#include
Can main method override?
Why do we need oop?