we can do it in two ways.
one is by extending thread class and other is by
implementing Runnable interface.
here the later one is good because when we are going for
mutiple inheritance only interface helps us
There is two ways for creating Thread in Java:
1.Extending Thread class
2.Implementing Runnable Interface
Second one is much more benificial than 1st one,as we can
able to avoid the overriden methods.
Thread can be created by
1. Extending Thread Class
2. implementing Runnable interface
The second approach is better as if you want to use multiple
inheritance, interface is better option.
i ahve v low % in 12th n BSC which is aroun 50 coz science
was imposed on me......nw m doin MCA n my aggregate in
above 74%,what shud i say if asked about low previous
percentage??????