Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

class declaration as static

 
abhay jain
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
we can not declare a class as static class
1. is that correct ? if yes then why is it so ?
2. is there any exceptional case where a class declared as static

for example the following code gives error on compiling

 
Vijay Tidake
Ranch Hand
Posts: 148
Hibernate Java Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

you can only declare the inner class as the static class but not the outer class.

Please check this also

Thanks
 
abhay jain
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks a lot my friend
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic