SCJP1.5(81%), SCDJWS(94%), next mission SCEA (but need to wait or that)
This is correct.Originally posted by Pooja Jindal:
we have not explicitly put a call to super() but
compiler would automatically put a call to super().
But that not.So the o/p would be
Phone.showDevice Phone.device
Mobile.showDevice Mobile.device
Mobile.showDevice Mobile.device
Tip: It's crucial which showDevice() method is called.
MooN
Originally posted by Satya Maheshwari:
Please correct me if you find something wrong here.
Everything has got its own deadline including one's EGO!
[CodeBarn] [Java Concepts-easily] [Corey's articles] [SCJP-SUN] [Servlet Examples] [Java Beginners FAQ] [Sun-Java Tutorials] [Java Coding Guidelines]
Originally posted by Himanshu Saxena:
...the Variables depend on the refernce type while the methods depend on the object type.
A reference to a class field causes initialization of only the class or interface that actually declares it, even though it might be referred to through the name of a subclass, a subinterface, or a class that implements an interface.
Keep Smiling Always — My life is smoother when running silent. -paul
[FAQs] [Certification Guides] [The Linux Documentation Project]
Don't get me started about those stupid light bulbs. |