Basic difference between static and final keyword

What is the basic difference between static and final keyword in JAVA OOP language??

  • Rahul
  • 24 Jul 2018
  • 872 Views
  • 2 Answers
Your Answer

Static variable is a variable for class not for object and it is shared among all instances of class. Final variable can't be initialised again and a final class can not be subclassed 

Object Oriented Programming

Didn't get the answer.
Contact people of Talent-Object Oriented Programming directly by clicking here