Posts

Showing posts from February, 2023

Java Interview Question

                                Java                         Interview Questions:                         Difference between final finally and finalize()   Final : final is modifier is applicable for classes methods and the variables.   à If we declared variable as final then it will become constants.   à if we declared method as final. In child class we can’t override this method. à if we declared class   as final then we can’t extends( inherited ) this class.       //If we declared variable as final then it will become constants.   public class ...