java questions

The Java interpreter is used for the execution of the source code?

True
False
Ans: a.

On successful compilation a file with the class extension is created?

True
False
Ans: a.

The Java source code can be created in a Notepad editor?

True
False
Ans: a.

The Java Program is enclosed in a class definition?

True
False
Ans: a.

What declarations are required for every Java application?

A class and the main( ) method declarations.

What are the three OOPs principles and define them?

Encapsulation, Inheritance and Polymorphism are the three OOPs Principles.

What are the two parts in executing a Java program and their purposes?

Two parts in executing a Java program are:
Java Compiler and Java Interpreter.
The Java Compiler is used for compilation and the Java Interpreter is used for execution of the application.

What are the three OOPs principles and define them?

  Encapsulation, Inheritance and Polymorphism are the three OOPs Principles.
Encapsulation:
  Is the Mechanism that binds together code and the data it manipulates, and keeps both safe from outside interference and misuse.
Inheritance:
  Is the process by which one object acquires the properties of another object.
Polymorphism:
  Is a feature that allows one interface to be used for a general class of actions.

What is a compilation unit?

Java source code file.

Google