What is meant by final class, methods and variables?
Answer Posted / narasimha
when you declare a class as final, that class cannot be
extended.In java "String" class is final.
when you declare the variable as final then we can
intialize it only once.it is constant.
when declare the method as final we cannot override the
method
Is This Answer Correct ? | 12 Yes | 0 No |
Post New Answer View All Answers
What is the exception hierarchy in java?
What is the difference between the boolean & operator and the && operator in java programming?
What is array initialization in java?
Name few java.lang classes introduced with java 8 ?
Can we write any code after throw statement?
How many types of threads are there in java?
What is a nonetype?
What is the difference between multitasking and multithreading in Java
What is the final access modifier in java?
What is complexity in java?
What is floor math?
What class allows you to read objects directly from a stream in java programming?
What does super keyword do?
What is method overloading in JAVA? Why is it not present in C ?
Can we instantiate interface in java?