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 fail-fast and fail-safe?
What is comparator in java?
What are static blocks in java ?
Which language is java?
What is the destroy method?
What is a nested list?
What is balanced tree in java?
What is high level language in computer?
What is jit compiler in java?
What are triggers in DB? Explain their types. How do they work?
Can we use a switch statement with strings?
String and stringbuffer both represent string objects. Can we compare string and stringbuffer in java?
What is strings in java?
What checkbox method allows you to tell if a checkbox is checked?
What is a get method?