Daily Quizzes
Mock Tests
Download MCQs Free PDF
Question
Computer Knowledge

Java Virtual Machine (JVM) is used to execute architectural neutral byte code. Which of the following is needed by the JVM for execution of Java code?

Class loader only

Class loader and Java Interpreter

Class loader, Java Interpreter and API

Java Interpreter only

जावा वर्चुअल मशीन (JVM) का उपयोग आर्किटेक्चरल न्यूट्रल बाइट कोड को निष्पादित करने के लिए किया जाता है। जावा कोड के निष्पादन के लिए JVM को निम्नलिखित में से किसकी आवश्यकता होती है?

केेवल क्लास लोडर

क्लास लोडर और जावा इंटरप्रिटर

क्लास लोडर, जावा इंटरप्रिटर और API

केवल जावा इंटरप्रिटर

View Answer & Solution
Correct Answer: B (Class loader and Java Interpreter) B (क्लास लोडर और जावा इंटरप्रिटर)
Detailed Solution:

Solution

Concept:

Java virtual machine is component of technology for its hardware and operating system independence, the small size of its compiled code and its ability to protect users from malicious programs.

Explanation:

Java virtual machine is an abstract computing machine. Like a real computing machine, it has an instructions set and manipulated various memory areas at run time.

Java virtual machine knows nothing of java programming language, only of a particular binary format, the class file format.

A class file contains JVM instructions or bytecodes and a symbol table, as well as other information.

JVM imposes strong syntactical and structural constraints on code in a class file.

Class loader and interpreter is needed by JVM to execute Java code.

Basic structure in JVM are: heap store, stack, method area, runtime constant pools, PC.

Solution

मूल सिद्घांत:

जावा वर्चुअल मशीन अपने हार्डवेयर और ऑपरेटिंग सिस्टम स्वतंत्रता, इसके संकलित कोड के छोटे आकार और उपयोगकर्ताओं को दुर्भावनापूर्ण कार्यक्रमों से बचाने की क्षमता के लिए प्रौद्योगिकी का घटक है।

ख़ुलासा:

जावा वर्चुअल मशीन एक अमूर्त कंप्यूटिंग मशीन है। एक वास्तविक कंप्यूटिंग मशीन की तरह, इसमें एक निर्देश सेट होता है और रन टाइम पर विभिन्न मेमोरी क्षेत्रों में हेरफेर किया जाता है।

जावा वर्चुअल मशीन जावा प्रोग्रामिंग भाषा के बारे में कुछ भी नहीं जानती है, केवल एक विशेष बाइनरी प्रारूप, क्लास फ़ाइल प्रारूप के बारे में।

एक वर्ग फ़ाइल में JVM निर्देश या बाइटकोड और एक प्रतीक तालिका, साथ ही साथ अन्य जानकारी होती है।

JVM एक वर्ग फ़ाइल में कोड पर मजबूत वाक्यात्मक और संरचनात्मक बाधाएं लगाता है।

जावा कोड निष्पादित करने के लिए JVM द्वारा क्लास लोडर और दुभाषिया की आवश्यकता होती है।

जेवीएम में मूल संरचना हैं: ढेर स्टोर, स्टैक, विधि क्षेत्र, रनटाइम निरंतर पूल, पीसी।

India’s #1 Learning Platform
Start Complete Exam Preparation
Daily Live MasterClasses
Practice Question Bank
Mock Tests & Quizzes
Trusted by 8.1 Crore+ Students

Exam Preparation Simplified

Learn Practice Analyse Improve
Get Started Free
Download the App

Trusted by 8.1 Crore+ Students

Enquire Now

Please share a few details to view the answer and solution.

Illustration of two people having a discussion

We're Here for You! Get in Touch with Class24 for All Your Needs!

Disclaimer: Your privacy is important to us. We will not share your information with third parties.