Ramya,
This is probably just a personal peeve of mine, but I try to discourage people from using "IM speak" when posting here on the Ranch. It's obvious that English is not your primary language and, honestly, I'm having a hard time understanding your question(s). By adding "IM speak" to your post, you're simply making it even harder for me to give you any useful answer. Please, in order to "help us help you," try to format your questions properly.
Do v really need
classinstance.start() to start a run() of thread when the class extends Thread.Or u can call start() directly without the instance of class.
You can simply call start() if you are within a class that extends Thread. Often, however, you spawn threads from some other class, not the class that implements the Thread.
One more if v have static instance variable then if v make a chance to the variable inside a method does it reflect on the original variable value since static has only one copy......
When it comes to static variables, there is always just one variable per
class. That variable is shared over all
instances of that class. So, if one instance of a class changes a static variable, it is changed for
all instances of that class (and even for anyone outside the class that uses that variable).
For your code sample, I believe possible outputs include:
Techno
Techno 0
Techno 0 1
Techno 0 1 2
Techno 0 1 2 3
What the output is depends entirely upon when the threads execute and when they lose control of the processor/terminate.