Code taken from
http://www.jchq.net/phezam/exam.php Exam Question No: 37 Question Bank Id:249
When I compile and run the below code I get infinite o/p of 100.
Could any one tell me why the s.setPrice(200) method is not called??
According to me it should call the setPrice method and if it is not able to call it then it should give unreachable code error...