Java Basics
- 18 March
Final keyword in java with example
In this post, we will see about final keyword in java. Final keyword can be associated with: variable method class Final is often used when you want restrict others from doing any changes. Let’s go through each by one. Final variable If you make any variable final then you are not allowed to change its […]
- 19 May
Java static import example
If any class which is not in same package, we need to import it. If we import that class we can directly access static variables and methods with the class name. If you use static import, you do not need to use class name any more. Lets understand with the help of example Without using […]
- 08 December
Static keyword in java with examples
In this post, we will see about static keyword in java.So static keyword can be associated with: Variable Method Block Nested class Lets go through each one by one. Static variable: If any instance variable is declared as static.It is known as static variable. [crayon-6767c8217f5a8212068868/] Some points about static variables are: Static variable belongs to […]