Question :Since Object class is the super class of every class in java and suppose if I
write class x extends y and this class x also extending Object,
Is this multiple Inheritance ? (CoreJava)
Answer :When you write "public class x" which doesn't extend any other class by
default x is extending Object.
When you write "public class x extends y" x is extending y and y is
extending Object class
Your class can extend only one class.
www.interviewhelper.org is a hope for all the Job seekers. Users can find unlimited here. These range from technical to HR, from functional to behavioral. www.interviewhelper.org contains in the fields like Ajax,VB,Networking,Sharepoint,JEE,Perl,Javascript,Bioinformatics,Classic ASP,Unix,Linux,Accounting,Oracle DBA,Microprocessor,Bluetooth,jms,jme,.net framework,ABAP,ASP,ASP.net,Basic .net Framework,Interview Questions,C language,C++,database,Oracle,Java,PHP,LAMP,SAP etc.
Thursday, March 12, 2009
Since Object class is the super class of every class in java and suppose if I
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment