engineering recuitment Rajasthan Informatics Assistant (Suchna Sahayak) Mock Test 2023 Programming and Data Structure OOPs concept
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.