Alguem sabe do porque desse erro ?
 
ProdutoImplementacao.java:4: unreported exception java.rmi.RemoteException; must
be caught or declared to be thrown
public class ProdutoImplementacao extends UnicastRemoteObject implements Produto
  {
       ^
1 error
 
o codigo fonte esta abaixo :
 
import java.rmi.server.*;
import java.rmi.*;
 
public class ProdutoImplementacao extends UnicastRemoteObject implements Produto  {
 
 String istNome = "Andre";
 int iintIdade = 22;
 
 public String getNome() throws RemoteException {
  return istNome;    
 }
 
 public int getIdade() throws RemoteException {
  return iintIdade;  
 }
 
}

Reply via email to