Posts

Showing posts with the label How to use static keyword in Java

Advanced Java Programming

Image
                          Advanced Java Programming Advanced Java Programming :-   Introduction to advance java   As most of us already know that if we want to make normal applications it  can be easily built using core Java concepts. But, when it we need to develop web applications, advanced Java fundamentals, like JSP, Servlets, JDBC etc. needed, so to add capabilities and features of the application advance java is essential for developers. Through the motive of this blog is to explain about Advanced Java, I will be giving you a complete insight into the fundamental concepts of Advance Java. Figure - 1.2 If you want to see complete video on this please  have a look the video below.                              Learn with Resh u Advanced Java Programming Course ...

How to use static keyword in Java

Image
How to use static modifier in Java  There are some non-access modifiers to achieve many other functionalities in java. ·       The  static  modifier for creating class methods and variables. ·    The  final  modifier for finalizing the implementations of classes, methods, and variables. ·       The  abstract  modifier for creating abstract classes and methods. ·       The  synchronized  and  volatile  modifiers, which are used for threads. The Static Modifier Static Variables The static keyword is used to create variables that will exist independently of any instances created for the class. Only one copy of the static variable exists regardless of the number of instances of the class. Static variables are also known as class variables. Local variables cannot be declared static. Static Methods T...