Static Block in Java

When a block is declared with the static keyword, it is called static block in Java. It is a normal block of code enclosed in braces ({ }) and preceded by a keyword “static”. A static block is also known…
Scientech Easy welcomes you in the Java tutorial category. We have designed this tutorial series for beginners, students, and professional developers who want to learn Java programming from basic to advanced levels. Here, you will find easy-to-understand Java tutorials, practical example programs, interview questions, and quizzes.
So, let’s start to understand Java concepts one by one with these tutorials.

When a block is declared with the static keyword, it is called static block in Java. It is a normal block of code enclosed in braces ({ }) and preceded by a keyword “static”. A static block is also known…

In this tutorial, we will understand about call by value and call by reference in Java with the help of examples. In other words, we will understand how argument values are passed to a method in Java. In Java, all…

So far, we have learned that the members of a class can include variables, methods, constructors, and initializer blocks. However, a class can also contain another class or an interface as its member. Nested Class in Java A class declared…

When a method is declared with the keyword static in its heading, it is called a static method in Java. If not, it is called non-static (or instance) method. A static method is also known as class method because, like…

In this tutorial, we will learn about the static keyword, and static variable in Java with the help of examples. Generally, when we create a class in Java, we don’t know anything about its members until we create an object…