• Post Reply Bookmark Topic Watch Topic
  • New Topic

overriding a static method  RSS feed

 
S bitz
Ranch Hand
Posts: 80
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can we override a static method in java?
 
Rahul Bhattacharjee
Ranch Hand
Posts: 2308
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No , they are attached with class , one for all the objects created out of one class.You can override only non final public/protected and non static functions.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!