What is the difference between Static and final?
Answer / vetri
in variable,specifying final the value cant be changed
through
entire program.specifying static means the variable value
will persist between different method calls,automatic
initialization of static variable is zero.static and final
methods cant be overriden with non static or non final method.
but static and final methods can be overriden with static
and final methods in the subclass.
| Is This Answer Correct ? | 4 Yes | 4 No |
What is the set interface in java programming?
What is the core java?
Can we overload the methods by making them static?
To the class members how can we provide security?
What all methods are used to prevent thread execution ?
Explain how to force the garbage collection in java.
What is this keyword used for?
what is instanceof operator used in java?
What is final variable?
What is the use of :: in java?
What are the skills required for core java?
Explain java code for recursive solution's base case?