File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

differnt ways to create object for a class

 
anish reddy
Ranch Hand
Posts: 74
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Sheriff
Pie
Posts: 47293
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
     
    I agree. Here's the link: http://aspose.com/file-tools
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic