What is more advisable to create a thread, by implementing
a Runnable interface or by extending Thread class?
Answer Posted / abcd
Suppose ..you want to work with thread and also with a
class from AWT package.
java rule is that : YOu cannot extend more one class in
your program.
So it is adviseable to implement the runnable interface and
extend any other class which you desire....
| Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Write a java program to generate fibonacci series ?
what type of questions asked for barclays technologies pune please send urgent
How to declare an arraylist in java?
What is the purpose of using the java bean?
What is port number in java?
Explain about member inner classes?
What is this keyword in java?
How to create an interface?
What is connection class in java?
Why are getters and setters used?
What does exclamation mean in java?
How can you handle java exceptions?
What all access modifiers are allowed for top class ?
What is meant by null and void?
Write a regular expression to validate a password. A password must start with an alphabet and followed by alphanumeric characters; its length must be in between 8 to 20.