• Post Reply Bookmark Topic Watch Topic
  • New Topic

Constructor  RSS feed

 
RAMA KRISHNA AALLA
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can we write Exception handling in Constructor?
 
Joanne Neal
Rancher
Posts: 3742
16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried it ? What happened ?
[ March 31, 2006: Message edited by: Joanne Neal ]
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 66306
152
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
RAMA, these are not advanced questions. Please post them in a more appropriate forum.

I've moved this one to Java in General (beginner).
 
vignesh hariharan
Ranch Hand
Posts: 77
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok... rama see to that u post at right places... anyway the answer is yes.. hey and jus think of it this way.. constructor is also a method. as we know that anymethod can trow exception. and constructor is a method which is being called when u create an object.

eg:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!