how to make a class Static in Java?
You cannot make a top level class static in Java but Yes, you can make a nested class static in Java.
Recommended Articles
- BufferedReader
BufferedReader vs Scanner in JavaSept 17, 2018
BufferedReader vs Scanner in Java Here is the 5 key differences between the Scanner and BufferedReader class of Java API:1. Scanner is a much more p...
- core java
Difference between final vs finally and finalize in Java?Sept 17, 2018
Difference between final vs finally vs finalize in Java The difference given in first paragraph about final, finally and finalize() method is suffici...
- core java
Difference between early (static) binding vs late (dynamic) binding in JavaSept 17, 2018
In order to understand the difference between static and dynamic binding in Java, it's important to first learn what is binding? Binding means t...
- core java interview question answer
Difference between IdentityHashMap, WeakHashMap and EnumMap in Java Sept 17, 2018
IdentityHashMap vs WeakHashMap vs EnumMap in Java 1) The fundamental difference between IdentityHashMap and other Map implementations e.g. HashMap, ...