Java Language Interview Question and Answers

1. What is Java?
  A high-level programming language developed by Sun Microsystems. Java was originally called OAK, and was designed for handheld devices and set-top boxes. Oak was unsuccessful so in 1995 Sun changed the name to Java and modified the language to take advantage of the burgeoning World Wide Web.
2. What are the main features of java?
    The main features of java are
  • Compiled and Interpreted
  • Object oriented
  • Robust and secure
  • Type safe
  • High Performance.
3. What are pass by reference and passby value?
  • Pass By Reference means the passing the address itself rather than passing the value.
  • Passby Value means passing a copy of the value to be passed.
4. What is the Java API?
  The Java API is a large collection of ready-made software components that provide many useful capabilities, such as graphical user interface (GUI) widgets.
5. What is the Java Virtual Machine (JVM)?
  The Java Virtual Machine is software that can be ported onto various hardware-based platforms.
123456789101112 Page 1 of 12