• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Difference between new and Class.newInstance()

 
Rahul mir
Ranch Hand
Posts: 38
Eclipse IDE Java Spring
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
please someone explain about newInstance() method.
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
here you go .

Plus, I think newInstance create an object with default constructor. if there is no default constructor it throws error.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic