vishal mishra wrote:Please explain me why option 2 is correct and opt 7 is not ??
Option 7 is wrong because there is nothing on that line that will cause a compiler error. What error were you expecting ?
Option 2 is correct because the class is fine. It's difficult to say anything else without you telling us why you think it is not fine.