subhareddy2003


{ City }
< Country > india
* Profession *
User No # 15260
Total Questions Posted # 0
Total Answers Posted # 2

Total Answers Posted for My Questions # 0
Total Views for My Questions # 0

Users Marked my Answers as Correct # 16
Users Marked my Answers as Wrong # 10
Questions / { subhareddy2003 }
Questions Answers Category Views Company eMail




Answers / { subhareddy2003 }

Question { 9523 }

why the equals method can be override?when we override the
equals method?


Answer

equals method available in object class is for address
comparison not for content comparison.so for content
comparison we have to override equals method in our class.
wrapper classes and string class has overridden equals
method for content comparison.

Is This Answer Correct ?    11 Yes 3 No

Question { 18507 }

can u override the start() method of Thread class


Answer

we can override start() method present in Thread class.but
we have to follow following steps:

1) first our class must extend thread class.
2)then we have to override thread class start() in such way
that :
a) It should instantiate and register our new thread with
thread scheduler.
b) it should call run() method.(it may be our overridden
run method or thread class run() method)

Is This Answer Correct ?    5 Yes 7 No