Link Details

Can you override private method in Java? What will happen if you declare same private method i.e. with same name and same method signature to child class, will you get compile time error or a runtime exception? This question was asked many times on different Java interviews. This article explores how to answer this question with proper facts and reasoning.

Posted by Javin_Paul  |   May 11 2014 / 22:39

Add your comment


Html tags not supported. Reply is editable for 5 minutes. Use [code lang="java|ruby|sql|css|xml"][/code] to post code snippets.

Recommended Links

Scala
Written by: Ryan Knight
Featured Refcardz: Top Refcardz:
  1. Apache Hadoop
  2. Play
  3. Akka
  4. Debugging JavaScript
  5. Design Patterns
  1. Apache Hadoop
  2. REST
  3. Java
  4. Git
  5. Java Performance
Connect with DZone