Java_Interview_Series_Part_4__1677674916
Java_Interview_Series_Part_4__1677674916
Java INTERVIEW
( PART- 4 )
Developer_pani
Hi Preethi..! I am Pani.
Hey Pani ! Thanks
I am going to take
for giving me this
your technical round.
oppportunity.
I am going to ask
few Java Questions.
okay,
pani.
In Java, the final keyword is
used as defining something
as constant /final and
Explain the use of represents the non-access
final keyword. modifier.
ok... what is the use of
final keyword in
variable, method and final variable...
class
Final variable :
Syntax:
final int number = 10;
Final Method:
A method declared as final cannot be
overridden by its children's classes.
final class:
No classes can be inherited from the
class declared as final. But that final class
can extend other classes for its usage.
Final Method example:
To be continued in
next part...
Developer_pani
( Link in Bio )