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 |
where the static methods will live ,on stack ? can you explain brefly
What is the access scope of protected access specifier?
What is java util function?
What are integer overflows and underflows and how to handle them?
What is a layout manager and what are different types of layout managers available in java awt?
real time example for deadlock,starvation,livelock
Why does abstract class have constructor?
Explain about GridBag Layout?
is it mandatory to deaclare all variables public static fianl in interfaces?if i declare like in the below program, public interface A { public static final int I=0; int j=0; } in interface A,what is the difference between I,j?
what is bmg file and how to create that files?what will it contailn?
0 Answers HCL, Probe Services,
What is the static block?
What does flagged out mean?