where Person is an abstract class with seter and geter of property "name" and Employee is a concrete subclass of Person having setter and getter for property "empID" and both are in package "foo".
For me option 1 and 2 is correct as in option-1 we are setting attribute in request scope but in jsp page we are not specifying any scope so by default it will serch in "page" scope and it won't find it and on request it will fail. option-2 is also corrext as we are tying to cereate one instance of abstract class. but my doubt is in option-3 , in this case also we are setting attribute in request scope and trying to find it in page scope in jsp page which should give same error as in option-1 but the anser is given that it is correct and it will print the name. how it is happening ? will anyone help me out .