can a static method be overridden

Answer Posted / kapil dave

yes static methods can be overwritten.but it in fact hides the 1 in d superclass with the subclass 1.so the calling depends on d name of class frm which it is called.

there is a link to suns site where dis is described in detial..

http://java.sun.com/docs/books/tutorial/java/IandI/override.html

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the difference between the font and fontmetrics classes?

560


cud u help me ... i am struggling with this question... to find all the subsets of a given set for ex.... a,,b,c shud give all the subsets.... i gt the program in c bt nt able to get it in java..... help needed ..

1732


Explain the difference between object state and behavior?

563


In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?

1554


Are there books about seam?

630






What is the RMI and Socket?

623


In our urls and in the text of the buttons we have comma. Its causing an error. Is there a way to change the delimiting character for the menu arguments?

578


Describe activation process?

2060


What happens when a thread cannot acquire a lock on an object?

535


Explain the different types of memory used by jvm?

608


What classes of exceptions may be caught by a catch clause?

553


which type of objects reference will be given to client?

2022


How database connectivity in XML is achieved?

1766


Define prototype?

581


What is ripple effect?

632