When is an object created and what is its lifetime?
Answers were Sorted based on User's Feedback
Answer / apurva jain
Object is created when constructor has to be invoked or
when have to access the class.Its Lifetime is throughout
the Execution of that Class.
| Is This Answer Correct ? | 31 Yes | 8 No |
Answer / nikhil
global scope,if created outside class n local scope if
created inside a class......
| Is This Answer Correct ? | 3 Yes | 2 No |
Answer / alok pandey
When the constructor called then object created thus while
the programme execute till life of object
| Is This Answer Correct ? | 2 Yes | 2 No |
Answer / yathirajulu
whenever developer is required, and the life-time is when we
assinging null or close the program(application).
| Is This Answer Correct ? | 2 Yes | 14 No |
What is inheritance in oop?
What is abstrac class?where is it use?
write a short note on Overloading of Binary Operator?
What does and I oop mean?
What is the difference between and interface and an abstract class ?
4 Answers IBM, Infosys, Ness Technologies,
How to deploy web appliction in web logic ?
what is the difference between inter class and abstract class...?
Child cObj = new Parent() Wahts the output ?
What are classes oop?
what is the difference between <stdio.h>and "stdio.h"?
what is costructor?
Difference between over loading and over ridding?
12 Answers CTS, Patni, Softvision Solution,