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
How to store image in arraylist in java?
how to convert Java project into Maven ?
Is empty list java?
What are the two ways in which thread can be created?
Can anonymous class have constructor?
Explain the purpose of garbage collection in Java?
What is difference between adapter class and listener?
Is {a, n, d} a palindrome? If you are given a random string, is it a palindrome or not?
What is the purpose of the wait(), notify(), and notifyall() methods in java programming?
Why java is made?
Difference between current previous versions of Java?
What does it mean to be immutable?
What are 3 boolean operators?
What is the difference between inner class and nested class?
What happens if constructor is private?