[Subject Prev][Subject Next][Thread Prev][Thread Next][Subject Index][Thread Index]
Re: Java CreateObject
use
Class.forName
and then
Class.newInstance
"Lakshmi Anand K." wrote:
> I want to create java objects with their class names known at runtime. I
> want something of this:
> objref = createobject("classname");
> I will not be able to use : Classname Obj = new Classname() ; Will
> interfaces be useful for this?
> ------------------
> Lakshmi Anand K
> MSPV Group
> Pavoorchatram
>
> -----------------------------------------------------------------------
> For information on this and other Linux India mailing lists check out
> http://lists.linux-india.org/