Computer Science, asked by thenerd77, 9 months ago

The difference between keywords final and finally.​

Answers

Answered by Anonymous
91

</p><p>\huge \pink \star \boxed{QUESTION}

difference between keywords final and finally???

\bf{\huge{\mathfrak{\boxed{\red{Ans \:Wer\:---}}}}}

Final class can't be inherited, final method can't be overridden and final variable value can't be changed. Finally is used to place important code, it will be executed whether exception is handled or not. Finalize is used to perform clean up processing just before object is garbage collected. Final is a keyword.

</p><p>\huge \red \bigstar \boxed{THNKU}

Answered by Mahikothare22
1

Answer:

Final

Final is used to apply restrictions on class, method and variable. Final class can't be inherited, final method can't be overridden and final variable value can't be changed. Final is a keyword.

Finally

Finally is a block.Finally is used to place important code, it will be executed whether exception is handled or not.

Explanation:

&lt;marquee direction = "side"&gt;please mark as brainst!! &lt;/marquee &gt;&lt;marquee direction = "side"&gt;please mark as brainst!! &lt;/marquee &gt;&lt;marquee direction = "side"&gt;please mark as brainst!! &lt;/marquee &gt;

Similar questions