FeedBack Form

Your Name :
Your Email :
Your Location :
Your Message :
   
FeedBack

Java Programming Questions

Languages
Follow Us
 
1. What are applets?
 
  • Applets are small applications that are accessed from web server, automatically installed and run from the browser.
  • Once an applet arrives on the client it has limited access to resources thus ensuring security for the end user.
  • An applet is controlled by the software that runs it.
  • Usually, the underlying software is a browser, but it can also be applet viewer.
  • All applets should inherit from applet class.
Your Name Your Email-ID
Your Answer
 
2. What are class loader?
 
  • Java was designed thinking platform independency in mind.
  • So from loading libraries point of view it should not rely only on file systems.
  • In short its not necessary that you should be able to load libraries which are in only file systems but also from other sources like FTP, HTTP etc.
  • So JAVA went one step further you can load classes from across network or from any other source like FTP, HTTP etc. In order to attain this Class loaders came in to picture.
  • Class loader is the class responsible for finding and loading classes at runtime.
Your Name Your Email-ID
Your Answer
 
 
3. Give a few reasons for using Java?
  Java is a fun language. Let's look at some of the reasons.
  • Built support for multi threading socket communication and memory management (automatic garbage collection).
  • Object Oriented (OO).
  • Better portability than other language across operating systems.
  • Support a Web based applications (applet, Servlet, JSP) distributed applications (sockets, RMI, EJB ect) and network protocols (HTTP, JRMP etc ) with the help of extensive standardized APIs (Application Programming Interfaces).
Your Name Your Email-ID
Your Answer
 
4. How Java achieves platform independence?
 
  • Java is platform independent because of the consistent data sizes at all platforms which Java code is run.
  • The output of a Java compiler is not an executable code it is bytecode, bytecode is highly optimized set of instructions designed to be executed by a virtual machine that the Java run time system emulates.
  • As Java programs are interpreted, rather than compiled it is much easier to run them in a variety of run time environments.
Your Name Your Email-ID
Your Answer