How can final class be used?

Answer Posted / pranab dutta

A final class may not be subclassed so a final class can't
be extended. It means a final method can't be overridden
when its class is inherited. A final variable is a constant
which you can't change value of a final variable.

Is This Answer Correct ?    13 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Is minecraft 1.15 out?

545


What is string [] args?

551


what is meant wrapper classes?

600


Is java based on c?

528


What are the parts of methodology?

541






What is use of arraylist in java?

579


What exceptions occur during serialization?

602


Can a final variable be null?

541


What are the two types of java?

515


What is difference between length and length() method in java ?

554


Can you pass by reference in java?

522


How use .contains in java?

614


What is the difference between abstract classes and interfaces?

505


Where can I find jdk in my computer?

462


Write an algorithm for quick sort?

613