Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Basic questions

 
Andrew Parker
Ranch Hand
Posts: 178
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I want to know:
1) What is servlet and where will it be used? Is it related to EJB, JSP or Applet?
2) In JRE, the class loader adds security by separating the namespaces for the classes of the local file system from those imported from network sources. This limits any Trojan horse applications as local classes are always loaded first. (a) What is Trojan horse applications? (b) Why local classes are loaded first which will increase the code security?
3) I saw the document that hotspot client is included in 1.3 version, does the compiler use hotspot to compile the java code if I run the jdk1.3? Is hotspot a JIT virtual machine which is faster than the traditional JVM?
Thanks for any kind help.
Andrew

 
Marilyn de Queiroz
Sheriff
Posts: 9066
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
1) What is servlet and where will it be used? Is it related to EJB, JSP or Applet?

Servlets are the analog on the server side to applets on the client side. A JSP is a servlet turned inside out.

2) This limits any Trojan horse applications as local classes are always loaded first. (a) What is Trojan horse applications?

A Trojan horse is like a virus time-bomb.

(b) Why local classes are loaded first which will increase the code security?

Yes, local classes are loaded before network classes. This increases the code security.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic