Monday, December 19, 2016

Java Viva Voce

1. Who designed the java programming?
A.   James Gosling at Sun microsystems, Inc. in 1991.

2. In the beginning what was the main intention behind creating Java?
A. To connect many household machines.

3. What was the earlier name of Java programming language?
A. Oak

4. Why Oak was renamed to Java?
A. It is because there already existed a language by that name.

5. What are the difference between Java and other programming languages?
A. Java does not have pointers. We are forced to write the object oriented code in Java.

6. What features of Java are considered as the Java essentials?
A. High level language, Java Bytecode, Java Virtual Machine.

7. What is the Java Bytecode?
A. It is an intermediate code generated by compiler which is executed by the JVM.

8. What is JVM?
A. It acts as an interpreter for the bytecode, which takes bytecodes as input and executes it.

9. What is the full form of JRE?
A. Java runtime environment.

10. What does the JRE consist of?
A. JVM and core Java API libraries.

11. What is the JDK consist of?
A. JRE and development tools like compilers.

12. What are the main features of Java?
A. Platform independent, object oriented, incorporates both interpretation and compilation, is robust and multithreaded.

 13. What is an object in Java?
A.  It is an instance of the class. An instance contains members (fields and methods)

14. What is a field?
A. A field is one that holds a value.

15. What is  a method?
A. A method defines operations on the fields and values that are passed as arguments to the method.

16. What is a sandbox?
A.  It is a security model that Java uses, which makes it easier to work with untrusted softwares by restricting codes.

17. What is the sandbox made of?
A. It consists of Class loader, Bytecode verifier and Security manager.

18. What is a class Loader?
A.  It is the first link in the security chain that fetches executable codes from networks.

19. What is a Bytecode verifier?
A.  It checks for any violations.

20. What is security manager?
A.  It enforces the boundary of the sandbox. It decides if the action performed by applet is approved or not.

21. Why save a Java program with class name?
A. Every class is placed in its own output file named after the class and using the .class extension.



Labels:

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home