What restrictions are placed on method overloading and
method overriding?

Answer Posted / javaguy

About said are absolutely correct. I would like to add some
more to method override.

The class/program who is overriding method should have
orverriding method visibility / access modifiers should be
same are greater but should not be lower.

Is This Answer Correct ?    9 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Give us a program to check for parenthesis matching using stack.

742


What language is pass by reference?

766


Which is better singleton or static class?

700


How will you load a specific locale?

723


What are the classes of java?

724


What is difference between null and void?

728


How do you download stubs from Remote place?

1531


What is java and why do we need it? Explain

803


Explain about data types?

779


What are some alternatives to inheritance?

811


what are synchronized methods and synchronized statements? : Java thread

775


Explain about instanceof operator in java?

800


What is java command?

784


What is constructor and virtual function? Can we call a virtual function in a constructor?

893


What does bitwise or mean?

803