This week's book giveaway is in the Cloud/Virtualization forum.
We're giving away four copies of Pipeline as Code and have Mohamed Labouardy on-line!
See this thread for details.
Win a copy of Pipeline as Code this week in the Cloud/Virtualization forum!
  • 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
  • Jeanne Boyarsky
  • Bear Bibeault
Sheriffs:
  • Rob Spoor
  • Henry Wong
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Carey Brown
  • Stephan van Hulst
  • Tim Holloway
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh
  • Jj Roberts

What programming restrictions are defined in the EJB specifications?

 
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


What programming restrictions are defined in the EJB specifications?
1,An enterprise bean must NOT attempt to listen on a socket.
2,A session bean class must NOT have any superclasses and/or superinterfaces.
3,An enterprise bean can directly read a file descriptor.
4,An entity bean class need NOT implement a public zero-argument constructor.


I think the answer is 1,am i correct?
 
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also think that 1. is the correct answer (compare core spec 21.1.2).
 
Sheriff
Posts: 14691
16
Eclipse IDE VI Editor Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Don't forget to quote your sources.
 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I also think so. But the question seems bit doubtful. See the option 3. Its not abt a restriction.
 
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1. is correct. It's good to remember this question
 
Ralph Jaus
Ranch Hand
Posts: 342
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

It's good to remember this question

Was it part of your exam, Tomaszz ? (just a rhetoric question). I see you passed it with a great score. Congrats! Share your experiences with us.
 
Tomaszz Lewandowski
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well, I had basic knowledge of EJBs, so I didn't used books, only specs (I read them twice and used many times to find answers). I also read many posts from this forum (even the old ones) and I think it is very helpful. Personally I think that SCBCD was the easiest exam (as compared to SCJP and SCWCD).
 
Ranch Hand
Posts: 856
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Along with answer 1. The answer 3 is also correct.
As the session beans should never attempt to read a file descriptor.
I think reading the file descriptor is equivalent to using the FileOutputStream only.
 
Chaminda Amarasinghe
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Amandeep,

Yes I agree to you. but it says "An enterprise bean can directly read a file descriptor." not "Can NOT". Its not a restriction. Thats why I said question is bit doubtful.

any way in real exam, they have highlighted special cases using upper cases. for example "An enterprise bean CAN directly read a file descriptor."

Tomaszz, I agree you. I think JP was the hardest exam to me than both WCD and BCD.
 
Hey, check out my mega multi devastator cannon. It's wicked. It makes this tiny ad look weak:
SKIP - a book about connecting industrious people with elderly land owners
https://coderanch.com/t/skip-book
reply
    Bookmark Topic Watch Topic
  • New Topic