What is meant by final class, methods and variables?
Answers were Sorted based on User's Feedback
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 |
Answer / ravikiran(aptech mumbai)
final class:Is the one which cann't be subclassed
final method:Is the one which cann't be overrided
final variable:is the one which acts like a constant
| Is This Answer Correct ? | 12 Yes | 1 No |
Answer / suresh chand
final class: we can't inherit that class
final method: we can't override that method
final variable: we can't change the value of that var.
| Is This Answer Correct ? | 9 Yes | 0 No |
Are nested try statements are possible?
Do extraneous variables affect validity?
There are three interfaces A,B & C. A extends B, B extends C, and C extends A.Is it multiple Inheritance? please anybody help me.....
What is an argument java?
how is final different from finally and finalize in java?
Is it possible to write a regular expression to check if string is a number?
What restrictions are placed on method overloading?
Can an exception be rethrown?
What does a za z0 9 mean?
Does A Class Inherit The Constructors Of Its Superclass?
What primitive Java types? Howmany are they and what are their names?
What is java beans?