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 is overriding in oops?
Write a java applet that computes and displays the squares of values between 25 and 1 inclusive and displays them in a TextArea box
i=20;k=0;
for(j=1;k-i;k+=j<10?4:3)
{
cout< What is difference between pop and oop? What is object and class in oops? What is protected in oop? What is class in oop with example? 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. What is new keyword in oops? What are classes oop? What is encapsulation oop? I have One image (means a group photo ) how to split the
faces only from the image?............ please send the
answer nagadurgaraju@gmail.com thanks in advace...
Where You Can Use Interface in your Project What are the types of abstraction? What is inheritance and how many types of inheritance?