tag:blogger.com,1999:blog-8712770457197348465.post5712833055813417353..comments2024-03-29T00:43:22.798-07:00Comments on Javarevisited: 3 Ways to Prevent Method Overriding in Java - Private, Static and Final Method Example Tutorialjavin paulhttp://www.blogger.com/profile/15028902221295732276noreply@blogger.comBlogger3125tag:blogger.com,1999:blog-8712770457197348465.post-29246899724115864802016-08-16T01:58:47.593-07:002016-08-16T01:58:47.593-07:00your answer is really very nice thank uyour answer is really very nice thank uprachi pandyahttps://www.blogger.com/profile/13238179028127986021noreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-83535787882724349312015-04-12T01:26:50.835-07:002015-04-12T01:26:50.835-07:00It sounds to me the question is wrong - it should ...It sounds to me the question is wrong - it should say when can't you override a method in Java. Thinking static/private is something you'd use to block overriding as opposed to their intended purposes doesn't sound a good programmer.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-8712770457197348465.post-42339670789111134692015-04-11T15:39:05.948-07:002015-04-11T15:39:05.948-07:00If you run it this way https://gist.github.com/ano...If you run it this way https://gist.github.com/anonymous/8c5fb0d714d7882b0fef<br /><br />you can simulate override of private methods.Edwinhttps://www.blogger.com/profile/00479562867101526549noreply@blogger.com