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 the difference between class & object?
What is java in simple terms?
What is the length of a string?
how are methods defined?
What is singleton service?
We can write any Java Logics in our JSP. Then why we are using servlets(Controller Layer) to interact with the DAO ?
diffrence b\w println() and printf()
What is an argument java?
Can I declare a class as private?
Java support call by reference (pass by reference) ?
Why are the objects immutable in java?
What are the advantages of inner classes?