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
What is the diffrence between a local-tx-datasource and a xa-datasource? Can you use transactions in both?
How many times may an objects finalize() method be invoked by the garbage collector?
Why do threads block on i/o?
Define aop(assepct oriented programing)?
Difference between loadclass and class.forname?
How are commas used in the intialization and iteration parts of a for statement?
What is synchronization and why is it important?
Write a singleton program?
What is the relationship between the canvas class and the graphics class?
What are the call back methods in entity bean?
Define prototype?
What do you know about seam?
how to make a index.jsp for running the site in internet and find an error for connection with weblogic server and java that give an error invalid object name.and how to maintain session.
What are the different methods of identifying an object?
How substring() method of string class create memory leaks?