Answer Posted / pranab dutta
A final class may not be subclassed so a final class can't
be extended. It means a final method can't be overridden
when its class is inherited. A final variable is a constant
which you can't change value of a final variable.
Is This Answer Correct ? | 13 Yes | 0 No |
Post New Answer View All Answers
Is array size fixed in java?
Where import statement is used in a java program?
What is the difference between exception and error in java?
I want my class to be developed in such a way that no other class (even derived class) can create its objects. Define how can I do so?
What is the difference between heap and stack memory?
Can we able to pass objects as an arguments in java?
What is replaceall in java?
What is meant by class loader? How many types are there?
Explain the difference between collection api and stream api in java8?
Can we change the value of static variable?
When do we use hashset over treeset?
What are daemon Threads in java?
In java, how we can disallow serialization of variables?
Can a class extend more than one class?
what is session in java?