If I have a class, where I have two methods one static and one not.
Is the lock the same or not? How to do for the two methods share, the same synchronization mechanism, ie the same lock?
class Foo{
public synchronized static void test(){}
public synchronized void test2(){}
}
Would this be a Thread-Safe class?