• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
Bartenders:
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

JPilot,, Java ranch exam question ID: 1

 
Ranch Hand
Posts: 120
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Will RemoteException be declared for any methods of a bean's local home interface?
 
Who knew that furniture could be so violent? Put this tiny ad out there to see what happens:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic