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

How can you traverse a linked list in java?

0 Answers  


List java api that supports threads?

1 Answers  


Explain the public class modifier?

0 Answers  


When you Click a Button, What event will be fired?

5 Answers  


What is a protected void?

0 Answers  


Name few java 8 annotations ?

0 Answers  


Print Vertical traversal of a Binary Tree.

0 Answers   Amazon,


what are the states associated in the thread? : Java thread

0 Answers  


why interaction with server using javascript is difficult

1 Answers  


Which non-unicode letter characters may be used as the first character of an identifier?

0 Answers  


Are arrays passed by reference in java?

0 Answers  


What is the difference between stream and buffer?

0 Answers  


Categories