CopyPastor

Detecting plagiarism made easy.

Score: 0.8802959620231; Reported for: String similarity Open both answers

Possible Plagiarism

Plagiarized on 2016-06-13
by Darshan Patel

Original Post

Original - Posted on 2014-05-03
by JB Nizet



            
Present in both answers; Present only in the new answer; Present only in the old answer;

Every class that doesn't explicitly extend another class implicitly extends java.lang.Object. So super() simply calls the no-arg constructor of Object.
Explicit call is unnecessary since the compiler would add it for you. You only need to add a super() call in a constructor when you want to invoke a superclass constructor with arguments.
so, result will be same whether you add super() constructor or not.
Every class that doesn't explicitly extend another class implicitly extends `java.lang.Object`. So `super()` simply calls the no-arg constructor of Object.
Note that this explicit call is unnecessary since the compiler would add it for you. You only need to add a `super()` call in a constructor when you want to invoke a superclass constructor with arguments.

        
Present in both answers; Present only in the new answer; Present only in the old answer;