package com.silan; class Test { static int x; static void get() { x=100; System.out.println("x="+x); } } public class StaticExample2 { public static void main(String[] args) { Test.get(); } }
Output
Silan Software is one of the India's leading provider of offline & online training for Java, Python, AI (Machine Learning, Deep Learning), Data Science, Software Development & many more emerging Technologies.
We provide Academic Training || Industrial Training || Corporate Training || Internship || Java || Python || AI using Python || Data Science etc