aspose file tools*
The moose likes Beginning Java and the fly likes class with object Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "class with object" Watch "class with object" New topic
Author

class with object

jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
IF a class designed with property means as follows

class D{

String a;
String b;
String c;
String d;

}

Then i can say,class D contain more object.

in an application more string object are used so I can say that application million of objects
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

What?
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
class D contains 4 string objects a,b,c,d
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

...

What's the question?
jacob deiter
Ranch Hand

Joined: Apr 02, 2008
Posts: 576
please confirm my understanding is correct or not?
David Newton
Author
Rancher

Joined: Sep 29, 2008
Posts: 12617

The class has four Strings, yes.
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
It means that your class as references to 4 other object on the instance level.


JDBCSupport - An easy to use, light-weight JDBC framework -
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38818
    
  23
No, it means your class as written has four references of type String which are pointing to null.
Sebastian Janisch
Ranch Hand

Joined: Feb 23, 2009
Posts: 1183
True, nothing is initialized yet .... After initialization your class would point to 4 other objects.
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 38818
    
  23
I know I was feeling pedantic, but a computer will become pedantic when it is given code, so that is the way you need to think.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: class with object