Choose the incorrect statement -

1
Finalize() is a method of java, which is called by garbage collector thread before removing an object from the memory.
2
If a class is declared final, it cannot be inherited. If you do so it will give you compile-time error.
3
lf a method is declared as final, that method cannot be overridden in sub class.
4
If we declare any variable as final, the value of the variable can be modified in final method.

Sponsored

hivanix.in

Visit

This quiz is brought to you by hivanix.in

🌐 Web App Development

Quick Navigation