• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Java Security Question?

 
Raja Mani
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I come across the following in SCEA Study guide by Mark Cade
Simon Roberts, as per the book for the below question the answer is option 'A' but here if you guys see the option A "The front end must perform computation" according to my understanding is front-end validation which is not possible in applets so I belive the option A is incorrect. Guys please correct me if Iam wrong.

Which would be the most reasonable use for an applet?

A. A user interface for an e-commerce system. The front end must perform computation and communicate over the network with the back end web server.
B. An element of a distributed computation system. Each element must communicate directly with each other element over the network.
C. A user interface for an e-commerce system that must be able to work in a disconnected mode that allows browsing of a local copy of the vendor's catalog and placing orders for later submission.
D. An assistive technology system that modifies the behavior of the host user interface by the addition of speech input and output.
E. A utility that lists all the system properties.


The correct answer is A.

Thanks & Regards,
Raja
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think that computation means just validation here. It means a non-trivial amount of processing has to be done, combined with communication with the server, and applets can do that nicely.

Also note that the point of the question is not "what tasks applets are best suited for", but rather "which of these 5 tasks applets are best suited for".

As regards validation, applets have the full Java API at their disposal, so whatever validation can be done on the server, can also be done in an applet (assuming that no other backend systems have to be accessed).
 
Raja Mani
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Ulf,

But still Iam not clear with non-trivial validations. Kindly please explain me with an example.

Regards,
Raja
 
Ulf Dittmer
Rancher
Posts: 42969
73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
still I am not clear with non-trivial validations.

What are you unsure about? Note that the question does not talk about validation, but computation (not that it makes a difference for this question).
 
Raja Mani
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok Ulf, Thanks a lot Iam clear.
 
Raja Mani
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok Ulf, Thanks a lot Iam clear.
 
Raja Mani
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok Ulf, Thanks a lot Iam clear.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic