Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public class TestLogger {
public static void main(String args[]) {
Logger logger1 = Logger.getInstance();
Logger logger2 = Logger.getInstance();
TestLogger testLogger1 = new TestLogger();
TestLogger testLogger2 = new TestLogger();
System.out.println(logger1.hashCode());
System.out.println(logger2.hashCode());
System.out.println(testLogger1.hashCode());
System.out.println(testLogger2.hashCode());
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment