Output::A0B0A1A2B1..........so on...A9B8B9.
Object contain copy of its own instance Variable that means
tt object of class
Thread1 contain one copy of Instance Variable "int i".
In above code two object A and B used to create two Thread.Both
thread accessing runMethod() through
tt object and changing value of Instance Variable int i . If there is one copy of instance variable then how both Thread accessing instance variable independently without interfering or changing value of instance Variable
int i