Tagged: #static

How to serve static resources in a web application

In any web application, there exists a folder named WebContent that automatically holds .class and jar files. When running a web application in eclipse or when deploying a war file to an external Tomcat, all that Tomcat needs is the WebContent folder. In this tutorial, we show 2 ways for serving static resources in a web application. 1- WebContent The standard way for...

Static keyword in java

Every instance of a class has its own state and behavior, whenever the state of a particular instance is modified, other instances are not affected. In java, a static keyword is normally applied to class members or methods in order to make them shared between all instances, the static keyword forces the variable or the method to only have one...