Notification
8 New
Congratulation Lettie 🎉
Won the monthly best seller gold badge
1h ago
CF
Charles Franklin
Accepted your connection
12hr ago
New Message ✉️
You have new message from Natalie
1h ago
Whoo! You have new order 🛒
ACME Inc. made new order $1,154
1 day ago
Application has been approved 🚀
Your ABC project application has been approved.
2 days ago
Monthly report is generated
July monthly financial report is generated
3 days ago
Send connection request
Peter sent you connection request
4 days ago
New message from Jane
Your have new message from Jane
5 days ago
CPU is running high
CPU Utilization Percent is currently at 88.63%,
5 days ago
View all notifications
Sana Fathima M
CUS-0001/2024
My Profile
Logout
Question & Answer
Exam Management
Manage Exam
1. Is Java Platform Independent if then how ?
Hints :
javac compiler compiles the program to form a bytecode or .class file
Explanation :
The bytecode can be created on any System and can be executed in any other system despite hardware or software
Java is platform-independent because it is compiled to a bytecode that can be run on any device that has a Java Virtual Machine (JVM).
2. How many types of packages are there in Java ?
Hints :
javac compiler compiles the program to form a bytecode or .class file
Explanation :
The bytecode can be created on any System and can be executed in any other system despite hardware or software
User-defined packages.
Other defined packages.
None of these
3. What is JVM ?
Hints :
javac compiler compiles the program to form a bytecode or .class file
Explanation :
The bytecode can be created on any System and can be executed in any other system despite hardware or software
JVM is a virtual machine that enables the execution of Java bytecode. The JVM acts as an interpreter between the Java programming language and the underlying hardware.
4. What is JIT ?
Hints :
javac compiler compiles the program to form a bytecode or .class file
Explanation :
The bytecode can be created on any System and can be executed in any other system despite hardware or software
The Just-In-Time (JIT) compiler is a component of the runtime environment that improves the performance of Java™ applications by compiling bytecodes to native machine code at run time.
5. Which component is used to compile, debug and execute the java programs ?
Hints :
javac compiler compiles the program to form a bytecode or .class file
Explanation :
The bytecode can be created on any System and can be executed in any other system despite hardware or software
JRE
JIT
JDK
JVM
6. Which of the following is OOPS concept in Java ?
Hints :
javac compiler compiles the program to form a bytecode or .class file
Explanation :
The bytecode can be created on any System and can be executed in any other system despite hardware or software
Object-oriented
Use of pointers
Portable
Dynamic and Extensible
7. Which of the following is a type of polymorphism in Java Programming ?
Hints :
javac compiler compiles the program to form a bytecode or .class file
Explanation :
The bytecode can be created on any System and can be executed in any other system despite hardware or software
Multiple polymorphism
Compile time polymorphism
Multilevel polymorphism
Execution time polymorphism
8. What will be the output of the following Java program ?
Hints :
javac compiler compiles the program to form a bytecode or .class file
Explanation :
The bytecode can be created on any System and can be executed in any other system despite hardware or software
0 256
0 64
256 0
64 0
9. What is the extension of compiled java classes ?
Hints :
javac compiler compiles the program to form a bytecode or .class file
Explanation :
The bytecode can be created on any System and can be executed in any other system despite hardware or software
.txt
.js
.class
.java
10. Which exception is thrown when java is out of memory ?
Hints :
javac compiler compiles the program to form a bytecode or .class file
Explanation :
The bytecode can be created on any System and can be executed in any other system despite hardware or software
Memory Error
Out of Memory Error
Memory Out of Bounds Exception
Memory Full Exception