how you will prevent method overriding?

Answer Posted / sonam

You can prevent method overriding by declared method as
static

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can a constructor have different name than a class name in java?

610


What are controls and their different types in awt?

614


What about features of local inner class?

627


What are the two ways in which thread can be created?

615


How does multithreading take place on a computer with a single cpu?

563






What is a loop java?

594


How many types of constructors are used in java?

549


What string is utf8?

557


What if constructor is protected in java?

569


Can private members of a base class are inheritable justify?

503


What is the point of polymorphism java?

553


why java uses class level type casting ?

2263


Can java list be null?

568


What is ph and buffers?

530


What is the use of conditional statement?

572