Java notes Date:26/11/2019

#Like C++, when a function is static, run time polymorphism doesn't happen in Java.

#Final methods cannot be overridden.

#In Java, functions are virtual by default.

 #Private methods are final and can not be overridden.
 
#It is compiler error to give more restrictive access to a derived class function which overrides a base class function.

#A java array is always an object.

#Arrays in Java are always allocated on heap.
 

Comments

Popular posts from this blog

Problem Solving:: Be Like Hasib from Toph

Problem Solving :: Largest Prime from Toph