What is Java?
Java is a free-to-use and highly dynamic high-level programming language for coding programs such as web applications, mobile applications, enterprise software, big data applications, and server-side technologies.
Who created Java and when?
Java was created by Sun Microsystems in 1995.
What are the common uses of Java?
Common uses of Java include game development, cloud computing, big data, artificial intelligence (AI), and Internet of Things.
What is the Java Runtime Environment (JRE)?
The JRE is the software that Java programs require to run correctly, providing class libraries and other resources.
What are the advantages of using Java?
Advantages of using Java include active community support, high-quality learning resources, inbuilt functions and libraries, security, and platform independence.
What is the ‘Write Once, Run Anywhere’ (WORA) philosophy?
The WORA philosophy means that Java code can be written once and run on any underlying platform without rewriting.
What must a developer understand to use Java?
A developer must understand the Java Virtual Machine (JVM) and Java Language and APIs.
What is the Java Virtual Machine (JVM)?
The JVM is a virtual machine that runs Java applications as a run-time engine.
What are the two broad categories of programming languages?
The two broad categories are compilers and interpreters.
How do compilers work?
Compilers translate the entire code into machine language, converting the source code into a binary program of bytecode.
How do interpreters work?
Interpreters check the bytecode and execute the bytecode instructions line by line.
What is the role of the Java compiler?
The Java compiler converts the source code into a binary program of bytecode.
What is the role of the Java interpreter?
The Java interpreter checks the bytecode and communicates with the operating system, executing the bytecode instructions line by line.
What file extension do Java programming statements have?
Java programming statements are stored on a disk with a .java file extension.
What is a Virtual Machine in Java?
A Virtual Machine in Java is named java.exe.
What are Java APIs?
Java APIs (Application Programming Interface) are important software components bundled with the Java Platform.
What do Java APIs provide?
Java APIs provide pre-written Java programs that plug and play existing functionality into a code, such as getting the time and date, performing mathematical operations, or manipulating text.
How many keywords does the Java language have?
The Java language has only about 50 keywords.
How many classes and methods does the Java API have?
The Java API has several thousand classes, with thousands of methods that can be used in any program.
What is the best way to understand a programming language?
The best way to understand a programming language is by dissecting and examining its sample program.
What does the following Java program do? ‘System.out.println(“First Java Application”);’
It prints or displays ‘First Java Application’.
What is a class in Java?
A class is the basic unit of a Java program that defines a group of objects, including data members and methods.
What is the class name in the example program?
The class name in the example program is ‘Skeleton’.
What are the requirements for naming an identifier in Java?
An identifier must begin with a letter, underscore, or dollar sign, can include letters, digits, underscores, or dollar signs, is case-sensitive, cannot be true, false, or null, and cannot be a reserved word.