my dog learned polymorphism*
The moose likes Beginning Java and the fly likes question about Object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "question about Object" Watch "question about Object" New topic
Author

question about Object

jone wars
Greenhorn

Joined: Jan 22, 2013
Posts: 3
i know every default no
argument constructors first
statement is super(); that is its
going to call its super class no
argument constructor. And every
class(i.e. which does not extends a
class) is child class of object. Then
my question is,what is super(); of
Object class doing???
Joanne Neal
Rancher

Joined: Aug 05, 2005
Posts: 3169
    
  10
See section 8.8.9 of the Java Language Specification.
The JLS is something you should always check when you have these sort of questions about how Java functions.


Joanne
Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 13884
    
  10

Welcome to the Ranch.

Since Object is at the root of the class hierarchy (class Object is the only one which doesn't have a superclass), there's no superclass constructor to call, so super(); would not do anything.


Java Beginners FAQ - JavaRanch SCJP FAQ - The Java Tutorial - Java SE 7 API documentation
Scala Notes - My blog about Scala
jone wars
Greenhorn

Joined: Jan 22, 2013
Posts: 3
Thanks..
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: question about Object
 
Similar Threads
multiple inheritance
When does 'this' become availible for use?
Serialization doubt
plz explain and tell out put
Need "super" keyword understanding