Welcome to the Real Estate Forum


The "ORIGINAL" Real Estate Social Network" SINCE 2005 and your #1 Resource for all things Real Estate


  •  »Over 35,000 Members
  •  » Answer Questions From "REAL" Buyers & Sellers
  •  »Ask Questions & Share Stories With Fellow Real Estate Professionals.
  •  »Read Articles & Blogs written by Real Estate Professionals.

...you have come to the right place!


YES! I want to register an account for free right now!


p.s.: For registered members YOUR FORUM NAME is free of ads

Results 1 to 2 of 2
  1. #1
    wryfhk22 is offline Banned
    Join Date
    Mar 2011
    Posts
    177

    Default What is constructor in java?

    I am beginner of java programming, so I want know what java constructor is and what the use of constructors is?

    Thanks

  2. #2
    Alvasin is offline Renter
    Join Date
    Apr 2011
    Posts
    2

    Default

    An object has the fields of its own class plus all fields of its parent class, grandparent class, all the way up to the root class Object. It's necessary to initialize all fields, therefore all constructors must be called! The Java compiler automatically inserts the necessary constructor calls in the process of constructor chaining, or you can do it explicitly.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •