We can solve this problem with reflections. Below snippet return the name of a public static final constant defined in a class or an interface by its value. Find… Read More
- Ex-boyfriend escapes after firing on student returning from conching class in Patna Patna: After the formation of the new government in Bihar, many questions are being raised about the le… Read More
A static method or variable doesn’t require an instance of the class in order to run. Before an object of a class is created, all static member variables in a class are initialized, a… Read More
When you create a new Java program and you initialize a variable or method outside the main method, and you try to execute or reference it, you will encounter a compile time error “Can… Read More
An unmodifiable Map in Java is one whose keys and values cannot be added, removed, or updated once the unmodifiable instance of a Map is created. In this post we’ll see how Unmodifiab… Read More