Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Beginning Java
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Beginning Java
differnt ways to create object for a class
anish reddy
Ranch Hand
Posts: 75
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
differnt ways to create an object.
i have done by using
1.new
2.ClassLoader
3.Class.forName
and i want to know other ways of creating new object in
java
bye
Campbell Ritchie
Marshal
Posts: 79151
377
posted 15 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
If you do a search you will find this has come up several times before and the answers given included
String
literals
Array initialisers
Boxing Integers etc
Does use of a ClassLoader actually create objects independently from the other techniques?
My name is Inigo Montoya, you killed my father, prepare to read a tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
object
Killing The Session ???
object creation
Two ways to create a class
Ways to create an object?
More...