• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Help with 2 common SCEA mock questions

 
Joe O'Toole
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 232
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"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.
 
Andrew Monkhouse
author and jackaroo
Marshal Commander
Pie
Posts: 11865
194
C++ Firefox Browser IntelliJ IDE Java Mac Oracle
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please quote the source of the question. Responses will not be allowed in this topic without it.
 
Joe O'Toole
Ranch Hand
Posts: 51
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic