What do u mean constructor in java ?
Answer / jeetesh
constructor is nothing but name of class name of the
constructor should be same
Main goal of constructor: is to initialize states of
an objects value or attributes values
while creating object to the class automatically
constructor will call
constructor in java:
1 name of constructor and name of class should be same
2 constructor it will call while
Creating object
3 constructor does not have return value
4 constructor cannot be final
5 constructors cannot be static if it is static means we
cannot create object to static
6 constructor cannot be inherit
7 constructor cannot be abstract
8 constructor first statement should be either super()
calling or this() calling
9 Overriding is not possible in case of constructor
| Is This Answer Correct ? | 1 Yes | 0 No |
hi this is padhu i just want to know about remote sensing scientist in ISRO, will there a written test or not if there are any model test papers plz post it.
successful command to make linux system as router in redhat-+
how to calculate when (-) sign givcn in the power number for example 125^-5
what are the things to be mentioned for the question "Tell me about yourself??
IS THE SAMPLE POINT OF LPG SPHERE TANK PEFOR OR AFTER BUMP?
how to write a test case for ATM perday you take atleast 500& not more than 5000 (not for ATM passward&username)
what is the stucture of.net array?
What is your happiest moment in your life
how to avoid a class from getting inherited but respective class should be able to instantiate ?
What is the instruction to load the register B?
Do you have any tips for using 3G phones?
how will u send the idoc
Civil Engineering (5086)
Mechanical Engineering (4456)
Electrical Engineering (16639)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)