Java test 2025 Questions and
Answers
Java source file extension is - ANSWER✔✔-.java
Java is an interpreted language - ANSWER✔✔-True
Drawback of C programming language - ANSWER✔✔-Extension ability of code is hard
Not platform independent
Complexity increases as program grows
Innovation and development of new programming languages happens for two reasons:
- ANSWER✔✔-To adapt to changing environment and uses
To implement refinements and improvements in the art of programming
Each bytecode instruction is translated into machine code at the time of execution -
ANSWER✔✔-True
JAVA compiler javac takes your source file as input file to be compiled and generates
_____ file. - ANSWER✔✔-Bytecode file
, Java enables the creation of cross-platform programs by compiling into an intermediate
representation called Java bytecode - ANSWER✔✔-True
Problem with both C and C++ is - ANSWER✔✔-Not secure as JAVA
Memory management is not automatic
Platform dependent language
Powerful features of C programming language are - ANSWER✔✔-Efficient
Powerful
Structured language
Easy to learn
Advantages of C++ over C - ANSWER✔✔-Easy to learn
Helps to manage growing code - extension ability
Powerful
Efficient
Structured and object-oriented
Java virtual machine interprets your bytecode to machine understandable code on the
target CPU. It consists of three components to take care of this process. - ANSWER✔✔-
Class loader, bytecode verifier, Just-in-time compiler
Answers
Java source file extension is - ANSWER✔✔-.java
Java is an interpreted language - ANSWER✔✔-True
Drawback of C programming language - ANSWER✔✔-Extension ability of code is hard
Not platform independent
Complexity increases as program grows
Innovation and development of new programming languages happens for two reasons:
- ANSWER✔✔-To adapt to changing environment and uses
To implement refinements and improvements in the art of programming
Each bytecode instruction is translated into machine code at the time of execution -
ANSWER✔✔-True
JAVA compiler javac takes your source file as input file to be compiled and generates
_____ file. - ANSWER✔✔-Bytecode file
, Java enables the creation of cross-platform programs by compiling into an intermediate
representation called Java bytecode - ANSWER✔✔-True
Problem with both C and C++ is - ANSWER✔✔-Not secure as JAVA
Memory management is not automatic
Platform dependent language
Powerful features of C programming language are - ANSWER✔✔-Efficient
Powerful
Structured language
Easy to learn
Advantages of C++ over C - ANSWER✔✔-Easy to learn
Helps to manage growing code - extension ability
Powerful
Efficient
Structured and object-oriented
Java virtual machine interprets your bytecode to machine understandable code on the
target CPU. It consists of three components to take care of this process. - ANSWER✔✔-
Class loader, bytecode verifier, Just-in-time compiler