Explain final, finalize() and finally?

Answer Posted / dwr

final varibles are unchangeble.
final classes are not subclassed.
final methods are not overriden.
finilize()
to clean up memory resourses for object using finilize().
finally block is executed if exception thrown or not.

Is This Answer Correct ?    7 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what do you mean by java annotations?

551


Explain try and catch keywords in java?

623


How java uses the string and stringbuffer classes?

518


what are abstract functions?

561


Is string a datatype?

552






How objects are stored in java?

548


How use .contains in java?

624


Which data type is class in java?

551


Explain public static void main(string args[]).

569


Is string serializable in java?

545


What are abstract methods in java?

655


what do you mean by stream pipelining in java 8? Explain

536


What are access specifiers in java ?

590


Is null a keyword in java?

557


What is difference between ++ I and I ++ in java?

533