Static Import Concept In JAVA || The Most Unknown Concept || learncodebasics

Опубликовано: 14 Июль 2021
на канале: learncodebasics
42
1

Hey Viewer,
In this video, we have discussed one of the most unknown concepts in java that is the concept of Static Import in java.
I have given a thorough lecture on this and I hope you will understand it.
If you have any suggestions or have a lecture topic to suggest then feel free to mail me or leave a comment.
E-mail: [email protected]
Code
---------
//learning and demo on Static Import
import static java.lang.System.*;
public class StaticImportDemo{
public static void main(String[] args){
out.println("Hello World");
//System is a class present in java.lang pkg
//out here is a static reference variable of PrintStream class present in System class
//println is a method inside the PrintStream class
}
}
Static Import In java
What is System.out.println in java
Describe System.out.println in java
How to do import in java
Best Java tutorial in hindi
Best java tutorial