title: can we put thread join method inside synchronized method
body: <p>Can I use thread.join inside a synchronized method?</p>
  
  <pre><code>class Table{  
   synchronized void printTable(int n){//synchronized method  
     for(int i=1;i&lt;=5;i++){  
       System.out.println(n*i);  
       try{  
        Thread.join(); 
       }catch(Exception e){System.out.println(e);}  
     }  
   }  
  }  
  </code></pre>
  
  <p>can I use thread.join instead of wait?</p>