I donโt see how this can work, because the compiler checks to see if the class you are trying to make is not final at compile time. You will get an error if you try to inherit it.
I think itโs all right to ask a question if you are interested, but the question that you ask yourself is why you want to do this? Reflection allows you to do many things to get around the final, private, etc., But this does not mean that it is a good idea. If a third-party library developer thought the final version was a good idea, you might be advised to abide by this.
source share