Total members 11893 |It is currently Tue Nov 05, 2024 8:34 pm Login / Join Codemiles

Java

C/C++

PHP

C#

HTML

CSS

ASP

Javascript

JQuery

AJAX

XSD

Python

Matlab

R Scripts

Weka





Can anybody let me know the answer for following question.
CAn we override static methods?
If not why?




Author:
Proficient
User avatar Posts: 280
Have thanks: 1 time

Static methods cant be overriden they can only be hidden becz, static
methods are are associated with the class not with the objects. Static
methods are implicitly "final", because overriding is only done based on the
type of the objects.

_________________
Please recommend my post if you found it helpful


Author:
Proficient
User avatar Posts: 228
Have thanks: 0 time
Post new topic Reply to topic  [ 2 posts ] 

  Related Posts  to : Can we override static methods in java
 Static Methods and Variables     -  
 main method and two static methods and loop until input zero     -  
 difference between a static and a non-static inner class     -  
 Static Import     -  
 What is a static method     -  
 static vs fixed div position     -  
 Class static properties     -  
 static variable defined in function     -  
 Calling a local variable from a static function     -  
 Which methods is best for SEO?     -  



Topic Tags

Java OOP






Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
All copyrights reserved to codemiles.com 2007-2011
mileX v1.0 designed by codemiles team
Codemiles.com is a participant in the Amazon Services LLC Associates Program, an affiliate advertising program designed to provide a means for sites to earn advertising fees by advertising and linking to Amazon.com