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

What is t type java?

707


What is printwriter in java?

616


Is zero a positive integer?

639


What is the difference between assignment and initialization?

656


Explain about transient variables in java?

735






If we allocate the memory using 'new' & de-allocated using 'free' then what will happen?

681


How to reverse string in java?

720


What are the types of strings?

659


How list contains works in java?

635


How many types of methods are there?

633


Why Java is not pure Object Oriented language?

749


What is the difference between variable & constant?

630


What’s the difference between constructors and other methods?

625


What are the differences between heap and stack memory in java?

640


What is java beans?

659