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 difference between null and void?
Why use string handling in Java?
Explain about features of local inner class?
Can we have this () and super () together?
What is diamond operator in java?
Can we have multiple catch block for a try block?
please send me hr interview questions in it industry
What is static keyword?
What is mean by encoding?
What is a function easy definition?
What is the difference between final, finally and finalize() in java?
What will be the default values of all the elements of an array defined as an instance variable?
What is palindrome in java?
Why parameters should be passed by reference?
Explain the transient field modifier?