• Post Reply Bookmark Topic Watch Topic
  • New Topic

static in exception  RSS feed

 
bairava surya
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

how to handle this exception?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does the code even compile for you?
If yes, did you try running it? What happened when you did?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also, your title is wrong. It should be exception inside static block
 
bairava surya
Ranch Hand
Posts: 134
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
code shows error as"initializer must be able to complete normally".
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
bairava surya wrote:code shows error as"initializer must be able to complete normally".

So it did not compile.
 
Charles D. Ward
Ranch Hand
Posts: 99
1
  • Likes 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You really need to learn how to properly indent your code so that it's readable by others.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!