Hi,I just started my preparation for OCPJP.While studying the
polymorphism topic(chapter 2 Exam objectives 5.2 in Kathy Sierra & Bert Bates book) I read these two sentences which I couldnt quite understand-
1.A reference variable can be of only one type , and once declared,that type can never be changed.
2.A reference is a variable,so it can be reassigned to other objects.
Can anyone explain me in detail ? An example would be of real help
Thanks in advance