Java allows objects to initialize themselves when they are created using _________
A) Arguments
B) Classes
C) Constructors
D) Parameters
Submitted by: AdministratorAns is constructer.
B'coz When a object is created following things are happen:
1) Memory gets allocated to the object
2) Constructer gets called.
3) In constructer the object gets initialize.
i think this will be sufficient to clear the topic..
Submitted by: Administrator
B'coz When a object is created following things are happen:
1) Memory gets allocated to the object
2) Constructer gets called.
3) In constructer the object gets initialize.
i think this will be sufficient to clear the topic..
Submitted by: Administrator
Read Online Java Classes Job Interview Questions And Answers
Top Java Classes Questions
☺ | Static and Non-Static are the two types of nested classes |
☺ | In this example class-var = new classname( ); |
☺ | Tell me Is it possible to declare an anonymous class while implementing an interface? |
☺ | It is possible to define a class within another class; such classes are known as ____________ |
☺ | in Java, all class objects need not be dynamically allocated |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |