File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes Help with 2 common SCEA mock questions Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Certification » Architect Certification (SCEA/OCMJEA)
Bookmark "Help with 2 common SCEA mock questions" Watch "Help with 2 common SCEA mock questions" New topic
Author

Help with 2 common SCEA mock questions

Joe O'Toole
Ranch Hand

Joined: Mar 02, 2009
Posts: 51
Hi

From all the mock exams I have gone through, there were 2 particular questions/answers I did not understand.

The first is - inheritance allows you to restrict the bahavior of objects. I don't get this. Could somebody please help me with this.

The other one relates to an applet being downloaded to a client PC which sits behind a firewall. The questions/answers seem to imply that the applet could be automatically trusted by the firewall. Does this ring a bell with anybody?

Thanks
Joe
Jari Timonen
Ranch Hand

Joined: Jan 16, 2004
Posts: 230
"inheritance allows you to restrict the bahavior of objects."

I think this depends what perspective is taken. You could also say: "inheritance allows you to add behavior of objects."

Look for overriding / overloading.


Applet can be downloaded behind firewall by client browser. Applet runs in sandbox in client jre which restricts usage. You are permitted to take connections from applet to server it was downloaded. If firewall prevents it, then technique cannot be used.

Hope this helps.


SCJP 5.0, SCJD URLyBird 1.3.3, OCMJEA 5 (SCEA) Factory Homes
Andrew Monkhouse
author and jackaroo
Marshal Commander

Joined: Mar 28, 2003
Posts: 11277
    
  59

Please quote the source of the question. Responses will not be allowed in this topic without it.


The Sun Certified Java Developer Exam with J2SE 5: paper version from Amazon, PDF from Apress, Online reference: Books 24x7 Personal blog
Joe O'Toole
Ranch Hand

Joined: Mar 02, 2009
Posts: 51
Apologies - the source was whizlabs

One of the answers I read said that if a firewall or server filters packets by ip address, it would be possible for a downloaded applet to be trusted automatically by the firewall/server.

Does this mean that if I download an applet from a particular site, e.g. http://mysite.com - it would be possible to setup rules on my firewall to ensure the applet it trusted automatically, i.e. user is not prompted to trust the applet. If so does it apply to all applets regardless of whether they are signed or not

Thanks
Joe
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Help with 2 common SCEA mock questions
 
Similar Threads
Mock tests and SCJP Dumps
Sarga Qns
Help: How to review results for K&B book SCJP mock exam
Problem with Mock applet
Ibm mock questions