Explain difference between final, finally and finalize?

Answer Posted / mukund viswanath vyavhare

Final -it is keyword .It is use for
variables and method.
Finally-it is use to define a block
that is always executed in try
catch and finally stetment.

Is This Answer Correct ?    11 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are actual parameters?

514


What is nan in java?

510


What type of variable is error flag?

576


Can I import same package/class twice?

482


Write a program to find the whether a number is an Armstrong number or not?

568






What happens when main () method is declared as private?

643


What is better - 'bit-shift a value' or 'multiply by 2'?

686


What are the differences between processes and threads?

502


Is a method a procedure?

541


How do you implement tree mirroring in java?

581


What does percent mean in java?

584


What is the base class of all classes?

560


Which browsers work with java?

554


What is port number in java?

583


What about anonymous inner classes in java?

553