Skip to Main Content

In Java, is a Constructor also a Method?

23bdeef9-6541-4b66-b2dd-61c3c308bbbbOct 17 2017 — edited Oct 17 2017

In Java, is a Constructor also a Method?

Looking at Oracle's definition of a Method it states that it needs the 6 components, including a return type.

Additionally Oracle's definition of a Constructor states in the second sentence that they "look like methods", doesn't state that they are.

I've been told both throughout my time using Java and school. I'm not a beginner to say in Java, but this question should be an essential to the language when it comes to documentation/specifications.

I'm just looking for technical information to back either or.

Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked due to inactivity on Nov 14 2017
Added on Oct 17 2017