Answer Posted / 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 View All Answers
What is string pool in java?
Can a class have more than one object?
What is the properties class?
How do generics work?
How to sort an unsorted array in java?
Class c implements interface I containing method m1 and m2 declarations. Class c has provided implementation for method m2. Can I create an object of class c?
What are generic methods?
What is internal iteration in java se 8?
What is null mean in java?
Explain restrictions for using anonymous inner classes?
What lambda means?
4.1 Supply contracts (in the form of comments specifying pre- and post conditions) for the enqueue() method of the LinkedQueue class given in the Appendix. (2) 4.2 Let Thing be a class which is capable of cloning objects, and consider the code fragment: Thing thing1 = new Thing(); //(1) Thing thing2 = thing1; //(2) Thing thing3 = (Thing) thing1.clone(); //(3) Explain how the objects thing2 and thing3 differ from each other after execution of the statements. (
Does java trim remove newline?
Explain about fail fast iterators in java?
How do you implement polymorphism in our day to day life?