What's the difference between final and finally keywords in java?

AnswerBot
1y

final keyword is used to declare a constant value while finally is used to define a block of code that will be executed after a try-catch block.

  • final keyword is used to declare a variable whose value ...read more

Vyshnavi Chappalli
2y

final is the keyword and access modifier which is used to apply restrictions on a class, method or variable. where as finally is the block in Java Exception Handling to execute the important code whet...read more

PrepInsta
author
2y
final is keyword and access modifier which is used to apply restrictions on a class, method or variable while finally is the block in Java Exception Handling to execute the important code whether the ...read more
Add answer anonymously...
Capgemini Analyst Interview Questions
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter