Computer Science, asked by abdulrehman7983, 1 year ago

Can a final class be subclassed in Java?

Answers

Answered by veerukhugar
5

Hey mate

*You can declare some or all of a class's methods final.

*You use the final keyword in a method declaration to indicate that the method cannot be overridden by subclasses. ...

*A class that is declared final cannot be subclassed.

*This is particularly useful, for example, when creating an immutable class like the String class.

I hope this will helps you

mark my ans as brainliest

Answered by Ritikalakrabairagi
1
Yes.............

❤️❤️❤️❤️❤️
Similar questions