how you will prevent method overriding?

Answer Posted / murali.25

you also prevent overriding by making the method static

Is This Answer Correct ?    3 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

FOR EXAMPLE WE R HAVING TWO LIST ELEMENTS ..BOTH LISTS CONTAINS ID,NAME,PLACE ..I NEED TO COMPARE BOTH IDS IN TWO LISTS,IF ID'S R SAME MEANS WE HAVE ADD THE DETAILS(LIKE NAME,PLACE) TO MAP...HOW IS POSSIBLE ?CAN ANY ONE SUGGEST?

2638


Is namespace same as package in java?

543


Is jdk required on each machine to run a java program?

755


Can a class have 2 constructors?

501


What is a void method?

517






What is bytecode verifier?

506


What is the difference between an interface and an abstract class?

541


What is oop in java?

526


How do you find the maximum number from an array without comparing and sorting?

641


What is update method called?

665


What is a double vs float?

538


Can we have multiple classes in a single file?

513


Why do I need to declare the type of a variable in java?

566


What is difference between string and new string?

542


Which way a developer should use for creating thread, i.e. Sub classing thread or implementing runnable.

522