Java Interview Question And Answer Java References Points to remember Interview

71 views · Published 16 December 2013 · 6:04 · Indexed 10 November 2026

Channel: Interview DOT · 2013 · Science & Technology

Watch on YouTube

Click here - https://www.youtube.com/channel/UCd0U_xlQxdZynq09knDszXA?sub_confirmation=1 to get notifications. Java Interview Question And Answer Java References Points to remember Interview

1.A reference variable can be of only one type, and once declared, that type can never be changed (although the object it references can change).  

   2.A reference is a variable, so that it can be reassigned to other objects, (unless the reference is declared final).

   3.A reference variable's type determines the methods that can be invoked on the object the variable is referencing.

   4.A reference variable can refer to any object of the same type as the declared reference, or—this is the big one—it can refer to any subtype of thedeclared type!

   5.A reference variable can be declared as a class type or an interface type. If the variable is declared as an interface type, it can reference any object of any class that implements the interface.

A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

Other Top Job Portals
www.Naukri.com
www.MonsterIndia.com
www.TimesJobs.com

Are you looking for a new Job ?
InterviewDot.com - A Job Portal
http://www.InterviewDot.com http://www.InterviewDot.com http://www.InterviewDot.com
One Click Dream Job - http://www.interviewdot.com/upload-resume/uploadresume.htm

More from this channel