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

How many types of variables are there?

676


What are JVM.JRE, J2EE, JNI?

697


What is singleton service?

514


how to create multithreaded program? Explain different ways of using thread? When a thread is created and started, what is its initial state? : Java thread

537


When a thread is executing synchronized methods , then is it possible to execute other synchronized methods simultaneously by other threads?

573






What is a finally block? Is there a case when finally will not execute?

553


What is the exact difference in between unicast and multicast object? Where we will use?

564


In the below example, what will be the output?

597


What is singleton class in java and how can we make a class singleton?

578


What is the maximum length of a url?

515


What is the concept of multithreading?

524


What is the gregoriancalendar class in java programming?

574


Where is jre installed?

597


what do you understand by the term string with respect to java?

533


What are kinds of processors?

573