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

Explain about wait() method?

0 Answers  


Is nan false?

0 Answers  


How many bits are used to represent unicode, ascii, utf-16, and utf-8 characters?

0 Answers  


Does constructor return any value?

0 Answers  


How to create an instance of a class without using "new" operator? Plz help me out properly.Thank u.

10 Answers   CSC,






What is 3-tier model?

3 Answers   Wipro,


Can bool be null?

0 Answers  


what are the purposes of native, transiant key words?

2 Answers  


What are the steps involved to write rmi based programs?

0 Answers  


How do you declare an array that will hold more than 64KB of data?

0 Answers   Aspire, Infogain,


Can we declare an interface as final?

0 Answers  


What is class array in java?

0 Answers  


Categories