File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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 Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "question about Object" Watch "question about Object" New topic

question about Object

jone wars

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

Joined: Aug 05, 2005
Posts: 3432
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.

Jesper de Jong
Java Cowboy
Saloon Keeper

Joined: Aug 16, 2005
Posts: 14074

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

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