wood burning stoves 2.0*
The moose likes Java in General and the fly likes regarding object creation at runtime Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Java in General
Bookmark "regarding object creation at runtime" Watch "regarding object creation at runtime" New topic
Author

regarding object creation at runtime

Saral Saxena
Ranch Hand

Joined: Apr 22, 2011
Posts: 202

Hi ,

Is this scenario is possible that I have a java class and its object is created by java applet at run time means that when I call the applet it will be mapped by the java class and its object is get created at runtime..any framework that support this kind of requirement..?
Stephan van Hulst
Bartender

Joined: Sep 20, 2010
Posts: 3605
    
  14

Hi Saral. Could you try to rephrase your question? I have no idea what problem you are facing.
Randall Twede
Ranch Hand

Joined: Oct 21, 2000
Posts: 4340
    
    2

i also fail to understand your problem. in any applet that has more than one class the other classes get created when you start the applet.


SCJP
Visit my download page
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

The title is vacuous, because objects only get created at run-time. There is no other time at which objects are created.

And generally you don't need a framework to create an object. The "new" keyword should suffice in most cases. But I'm sure you already knew about the "new" keyword, so perhaps you could explain your mysterious requirement for which it isn't good enough?
 
 
subject: regarding object creation at runtime
 
Similar Threads
Putting interfaces into objects
object of one applet accessed by object of another applet
Is an object an "instance" of a class?
clone() inherited/overridden(?) in Arrays from Object
Inherit/modify class at runtime