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 difference between static class and normal class?
Is java call by reference?
How can we achieve thread safety in java?
What is unicode in java?
When should we create our own custom exception classes?
How to sort double array in java?
Can you create an object of an abstract class?
What is a buffer in java?
Tell me the latest versions in java related areas?
What is the purpose of the finalize() method?
Can you declare the main method as final?
Why string objects are immutable in java?