wood burning stoves 2.0*
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


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 19651
    
  18

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: 3575
    
  14

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.
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: creating objects dynamically in a java class
 
Similar Threads
Java certification question
objects communication
java Beans Vs java objects
Thread Object
java objects