can a static method be overridden
Answer Posted / twinkle
no static methods cannot be overridden
but can be overloaded
for example in servlets,
Connection con=DriverManager.getConnection
(url,username,password);for all databases like oracle etc..
it can be overloaded as
Connection con=DriverManager.getConnection(url);//for MS
Access
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
How task's priority is used in scheduling?
How primary key is implemented in Oracle?
Difference between swing and awt?
Is the session factory thread safe?
What if the static modifier is removed from the signature of the main method?
What value does read() return when it has reached the end of a file?
What is the difference between the ‘font’ and ‘fontmetrics’ class?
How are commas used in the intialization and iteration parts of a for statement?
Can I use multiple html form elements with the same name?
Difference between new operator and class.forname().newinstance()?
Why do I get a duplicate name error when loading a jar file?
what are the advantages of JTA over JTS?
which type of objects reference will be given to client?
Can I use javascript to submit a form?
What value does readline() return when it has reached the end of a file?