• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread run() call understaning;(self-learn)

 
Srinivasan thoyyeti
Ranch Hand
Posts: 557
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Ranchers,

Self learn these Objectives:

1. How Runnable run() executed by Thread class?
2. How our over-ridden run() method in Thread extending class called?
3. What happens when


4. What happens when MyThread class extends Thread and when
4.1 doesn't over-rides run(); and
4.2 instantiated like this
new MyThread().start();

try to evaluate these options.
Any doubts you are welcome.

This helps gain grip on OOPs concepts.

[ August 12, 2007: Message edited by: Srinivasan thoyyeti ]
 
Srinivasan thoyyeti
Ranch Hand
Posts: 557
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just I want to focus this thread so that some more ranchers will see
 
Srinivasan thoyyeti
Ranch Hand
Posts: 557
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
setFocus(this){

parse the questions;
understand inheritance;
understand polymorphism;

}
 
Don't get me started about those stupid light bulbs.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic