What is the difference between Static and final?



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

Post New Answer

More Core Java Interview Questions

What is difference between static class and normal class?

0 Answers  


Is java call by reference?

0 Answers  


How can we achieve thread safety in java?

0 Answers  


What is unicode in java?

0 Answers  


When should we create our own custom exception classes?

0 Answers  






How to sort double array in java?

0 Answers  


Can you create an object of an abstract class?

0 Answers  


What is a buffer in java?

0 Answers  


Tell me the latest versions in java related areas?

0 Answers  


What is the purpose of the finalize() method?

0 Answers  


Can you declare the main method as final?

0 Answers  


Why string objects are immutable in java?

0 Answers  


Categories