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 are the different ways to handle exceptions?
What do negative exponents mean?
How to read and write image from a file ?
can any body body expalin best definitions & best real time exaples for opps concepts.
What do you know about the garbate collector?
What is numeric data type?
What is difference between core java and java ee?
Why are arrays useful in java?
Why are parameters used in functions?
What is the difference between array and array list in java?
Is overriding possible in java?
What does substring mean?
What is the function of log?
What method is used to specify a container's layout in java programming?
Can we change the scope of the overridden method in the subclass?