Using synchronized block in java to block access to multiple methods at once
===

I have a very specific question which I'm having difficulty finding an answer to.

if I have two methods:

    public class A{

    public void doSomething()
    {
       synchronized(A.class)
       {
           //synchronized block here
       }
    }

    public void doSomethingElse()
    {
       synchronized(A.class)
       {
           //synchronized block here
        }
    }


    }

So my question is, does the A.class act like a global lock? Meaning will one thread executing method doSomething() be blocked while another thread is executing doSomethingElse()?

Thank you.