Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.java.programmer > #30848
| Newsgroups | comp.lang.java.programmer |
|---|---|
| Date | 2015-01-24 19:55 -0800 |
| Message-ID | <bad1b40d-dd9c-4f26-a226-bc08f52819aa@googlegroups.com> (permalink) |
| Subject | Difference between new instance() and new () in java |
| From | s.senthilkumaran88@gmail.com |
Hi,
i have searched for difference between new intance() and new() in java.i am not getting any proper solution and real time prospectively.but i got only theoretical knowledge.can you anyone tell me what is the difference and which real scenario we used that two things.
what i am understanding in new insatnce() and new() :
new instance() :
It is used for run time and specified class loading like class.forname("FOO.class").newinstance();
new () :
It is used for compile time and as usual you know object creation like new FOO();
I don't know what is the exact difference for that.
Thanks
senthilkumaran
Back to comp.lang.java.programmer | Previous | Next — Next in thread | Find similar | Unroll thread
Difference between new instance() and new () in java s.senthilkumaran88@gmail.com - 2015-01-24 19:55 -0800 Re: Difference between new instance() and new () in java Leif Roar Moldskred <leifm@huldreskog.localdomain> - 2015-01-24 23:10 -0600
csiph-web