• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JPilot,, Java ranch exam question ID: 1

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Which of the following statements about Home methods in a bean class is incorrect for Container Managed Persistence.

A.The method must not access relationships.

B.The throws clause of the method may include the java.rmi.RemoteException.

C.The method must not access the bean's persistence state.

D.The method cannot be declared static.

E.The throws clause may include any exceptions defined by your application.


Correct answers: B.

Why is B correct, meaning why "The throws clause of the method may include the java.rmi.RemoteException" is incorrect? If the bean is a RFemote bean, the throws clause must include the RemoteException!

Miki
 
Ranch Hand
Posts: 1683
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Will RemoteException be declared for any methods of a bean's local home interface?
 
reply
    Bookmark Topic Watch Topic
  • New Topic