A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
The Java EE 7 Tutorial Volume 1 or Volume 2
this week in the
jQuery UI in Action
Java in General
Object Creation of Java Class
Joined: Aug 24, 2012
Jul 04, 2013 11:24:10
For the above
class A, we need to create 5 Obects only
If we try create 6th object it will returns the same reference of previous..
(Means we need to create only 5 Objects)
Author and ninkuma
Joined: Jan 10, 2002
Jul 04, 2013 11:29:56
What thoughts do you have on how to accomplish this?
I assume that this is an assignment or interview question? It'd be a silly thing to do in real code.
Asking smart questions
Books by Bear
I agree. Here's the link:
subject: Object Creation of Java Class
Is there any means to check the number of objects created when a java prgram runs.
Boone 1.1 Mock # 34
Constructors are not inherited.
How we can find that how much string objects has been created?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014