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 |
HOW WE CAN CORRELATE THE MA\ECHANICAL POWER TO ELECTRICAL POWER. SUPPOSE IF I WANT A PUMP OF PUMPIG 200 LPM AT 20 METER HEAD MENAS WHAT IS THE POWER NEEDED FOR PUMP IN ELECTRCAL AND HOW CAN WE GET IT
why dijkstra algorithm not used for negative weighted edges graph??
Hi I need exam pattern for ECIL Computer/IT category...
Hai, I want System Egnineer/Administrator interview question/answers.
how to implement spiral model on railway reservation?.
I an doing Engineering in IT(4th year). i want to know what is the scope or .NET and Linux, and which is better for carrier
what is difference between semaphre and deadlock
What will be the output of the following program : void main() { int a,b,c; scanf("%1d %2d %3d",&a,&b,&c); printf("Sum=%d",a+b+c); } [NOTE : THE USER INPUT IS :123456 44 544] (a)Sum=480 (b)Sum=594 (c)Sum=589 (d)None of these
When to use Stub and Not So Stubby Area? 10. How to get the external routes without making area Not So Stubby?
1 2 3 2 5 6 7 8 3 find the next term in the series
performance test required for a automatic bank teller?
which type of casting enforces type safety
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)