for exampleif we pass gnome reference to method that calls this parameter hthen this method can change the reference to point to different objectbut will still refer to the same object as before of coursethe method can use the reference to change the internal state of the objectand this will change ' object as well (since and are currently referring to the same objectconstructors constructor is special kind of method that is used to initialize newly created objects java has special way to declare the constructor and special way to invoke the constructor firstlet' look at the syntax for declaring constructormodifiers name(type parameter type - parameter - /constructor body thusits syntax is essentially the same as that of any other methodbut there are some important differences the name of the constructornamemust be the same as the name of the class it constructs soif the class is called fishthe constructor must be called fish as well in additionwe don' specify return type for constructor--its return type is implicitly the same as its name (which is also the name of the classconstructor modifiersshown above as modifiersfollow the same rules as normal methodsexcept that an abstractstaticor final constructor is not allowed here is an examplepublicfish (intwstring nweight wname ,constructor definition and invocation the body of constructor is like normal method' bodywith couple of minor exceptions the first difference involves concept known as constructor chainingwhich is topic discussed in section and is not critical at this point the second difference between constructor body and that of regular method is that return statements are not allowed in constructor body constructor' body