#13.2 Object Oriented Java Tutorial: STATIC Variable and Methods Part-2

Java



Access 7000+ courses for 60 days FREE: https://pluralsight.pxf.io/c/1291657/424552/7490

Java Tutorial for Beginners for STATIC Variable and methods. How static variables helps to optimise memory and why it is used. Also, why main() method in java is static is also explained. Apart fro static variable we have static methods, static blocks and static inner classes as well. So watch the previous video for explanation and watch the this video for demo code.

Next Video :…

7 thoughts on “#13.2 Object Oriented Java Tutorial: STATIC Variable and Methods Part-2

  1. Hi Sir, I tried the sample code in intelijet 2018.1 (newest version 1.8 Java, Tried in the same class where main was located.. and it gave me an error cannot tried creating an instance of the Rectangle class same thing… I created a new Java Class, Rectangle (another sheet and was able to work.. can you tell me whya it wouldn't work as an inner class (I think that is the terminology Java uses or class created in the same sheet where main is located.

    Please help.

Leave a Reply

Your email address will not be published. Required fields are marked *