can a static method be overridden

Answer Posted / lakshmanan n

Static methods can be overriden but why do you want to call
the static methods thro instance of the subclass or super
class.

If it is a static method.

call those methods like the following...

SuperClassName.methodName()
SubClassName.methodName()

Is This Answer Correct ?    2 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What class is the top of the awt event hierarchy?

570


What is a class loader? What are the different class loaders used by jvm?

579


What is the RMI and Socket?

620


What event results from the clicking of a button?

691


What is permgen or permanent generation?

579






Explain the advantages and disadvantages of detached objects.

568


How to implement RMI in Java?

2397


What value does readline() return when it has reached the end of a file?

583


How to implement dphibernate to activate lazy loading in Flex with java ?thanx in advance!

2551


What is message driven beam?

576


Java is fully object oriented languages or not?

532


Define the remote object implementation?

1993


hi friends, i have done my BE(CSE)at 2011 then i have joined one company before they asked me 50k so i paid but now they telling no project here so we r going to close like that so now i need any job i have good knowledge in core java and j2ee(jsp,servlet,jdbc) so if u know any job pl help me

1774


what is a portable component?

1460


What is a tasks priority and how is it used in scheduling?

542