File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes creating objects dynamically in a java class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "creating objects dynamically in a java class" Watch "creating objects dynamically in a java class" New topic
Author

creating objects dynamically in a java class

Vinod Vinu
Ranch Hand

Joined: Aug 30, 2009
Posts: 217
can we create objects on runtime in java ?


Vinod Kumar Nair
"Any fool can write code that a computer can understan. Good programmers write code that humans can understand."
Pratik D mehta
Ranch Hand

Joined: Jul 29, 2010
Posts: 121

Hello Vinod

Are you looking for something like this
Hope this helps.

Understanding is Everything - Peter Lord
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19792
    
  20

Define "create objects on runtime" and "create objects dynamically". All objects are created during runtime.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
Pratik D mehta
Ranch Hand

Joined: Jul 29, 2010
Posts: 121

I think both are same .
I don't know the difference if there is , Please clear my doubt on this.
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3649
    
  17

Or maybe he's referring to creating classes during runtime, which is possible with reflection, but that's probably out of the scope of beginning Java.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: creating objects dynamically in a java class