main Method Example

public static void main (String[] args) {
   System.setSecurityManager (new RMISecurityManager());
   try {
      Hello obj = (Hello) Naming.lookup ("//localhost:1099/Remote");
   }
   catch (Exception ex) {
      ex.printStackTrace();
   }
}

Legal Notices