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 the use of arraylist in java?

0 Answers  


waht happens when a return type ,even void is specified for a constructor?

11 Answers  


there are some duplicate values in ArrayList, how U'll get that array with out duplicate?

4 Answers   CMC,


Can we overload the constructors?

0 Answers  


How to overcome the exception object reference not set to an instance of object?

0 Answers   Wipro,






What is the applet security manager, and what does it provide?

0 Answers  


What is use of arraylist in java?

0 Answers  


What is multi-catch block in java?

0 Answers  


What 5 doubled?

0 Answers  


What steps are taken when the OS shifts from one-thread execution to another?

0 Answers   Amazon,


What is this keyword used for?

0 Answers  


What is garbage collection in Java, and how can it be used ?

32 Answers   Accenture, HCL, Infosys, Sara, SITS, TCS, Wipro,


Categories