Answer Posted / nikhil agrawal
Main method is static and static method is not override.
For example:- if i have Class A having main method and Class B extends Class A and also having the main method. in that case Class B hide the main method of A not override.
overriding process occur on run time and but static method load on compile time. that's its the reason we can not override main method but we can hide it.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is "this" keyword in java? Explain
How to make a class or a bean serializable?
What is the association?
What means public static?
What is meant by binding in rmi?
How many bytes is 255 characters?
What is computer compiler?
What is arrays aslist in java?
Can an interface have a constructor?
How can constructor chaining be done by using the super keyword?
Write a method that will remove given character from the string?
Describe the Big-O Notation.
What is the java idl system?
What is the difference between notify and notifyall method?
What is the synonym of procedure?