Can we override private methods in Java? - GeeksforGeeks
Both serves different purpose. Final is to prevent the members/classes being modified while it can be visible(depending upon the access modifiers). Private is an access modifier to hide access to the members from outside the class. It will not be availabl
www.geeksforgeeks.org |