/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package Assignment;



class TargetClass{
    
    public TargetClass(){
        System.out.println("Target class is called.");
    }
}

class ProxyClass{
    
    public ProxyClass(){
        System.out.println("Proxy calss is called. ");
    }    
}

class ProxyTest{
    
    public static void main(String []p){
        
        new ProxyClass();
        
        try{
            Thread.sleep(2000);
        }
        catch(Exception ex){}
        
        new TargetClass();
        
    }
}