in Education by
I'm trying to analyze the nature of porting and virtual machines, with the intent of minimizing the amount of porting. Looking back into the history of things, one thing stands out in my mind, however. The Java Virtual Machine, i.e. SDK/JRE, though it is able to dynamically process java classes and/or compile java source code, is essentially middleware, is it not? I imagine the people at Oracle recompile it for different operating systems in order for the Java language to be of use to each respective operating system. So, all this brings me to my above stated question, "Why institute a Java Virtual Machine when Java itself could exist as yet another language and be ported to different architectures without the need for porting the middleware (i.e. the middleware in this case being the JVM)?" This is just an assumption, but would it be because the JVM is designed to have minimal porting requirements among architectures, and thus modification of existing java between architectures requires less work? Thanks. JavaScript questions and answers, JavaScript questions pdf, JavaScript question bank, JavaScript questions and answers pdf, mcq on JavaScript pdf, JavaScript questions and solutions, JavaScript mcq Test , Interview JavaScript questions, JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)

1 Answer

0 votes
by
Pros and cons prevail with regard as to when such software as Java's Virtual Machine is used instead of just implementing a language each time there is a need on a different architecture. As commenters above have posed, porting compilers to new architectures to compile a language's code, let's say, Java's without its Virtual Machine, would comprise much more industrious tasks than porting over a single piece of software designed not to change much over time and handle execution and memory management, among things, for a widely-used language, say, like the existing one we have with Java. Thus, the Virtual Machine provided alongside Java is a pro in this regard with its reduction in the amount of refactoring required. However, perhaps the most visible con is that virtual machines running the language would render applications using the language slow access to the hardware underlying the virtual machine, due to the internal garbage collection mechanisms and built-in memory management which together would result in significant overhead. Hence, high performance applications such as AAA games would be ruled out and/or severely impeded.

Related questions

0 votes
    Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 10, 2022 in Education by JackTerrance
0 votes
    Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 10, 2022 in Education by JackTerrance
0 votes
    Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Want ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Mar 10, 2022 in Education by JackTerrance
0 votes
    What is debugging an application which runs on another java virtual machine on another machine? (a) virtual ... Servlet of Java Select the correct answer from above options...
asked Feb 22, 2022 in Education by JackTerrance
0 votes
    What is debugging an application which runs on another java virtual machine on another machine? (a) virtual ... Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked Oct 24, 2021 in Education by JackTerrance
0 votes
    I am facing a weird issue, we have developed a BOT which runs on BOT runner(virtual machine). the job ... is much appreciated. Thanks Select the correct answer from above options...
asked Feb 1, 2022 in Education by JackTerrance
0 votes
    A company is planning on hosting an application on an Azure Virtual Machine. It needs to be ensured that the application ... plan. Would this satisfy the requirement A. Yes B. No...
asked Nov 20, 2022 in Education by JackTerrance
0 votes
    In which type of virtualization, you create a virtual machine on top of physical hardware?...
asked Apr 11, 2021 in Technology by JackTerrance
+1 vote
    You need to deploy a virtual machine on Azure with a low memory entry level requirement. Which virtual machine sizes should you consider choosing?...
asked Oct 20, 2020 in Technology by JackTerrance
0 votes
    Give your opinion on the following topic: Non-Alignment was necessary during the Cold War. Please answer the above question....
asked Aug 20, 2022 in Education by JackTerrance
0 votes
    Commiting a code change, when the inspection fails , is perfectly fine as the code logic is working fine anyway (i)False (ii)True...
asked Oct 5, 2020 in Technology by Editorial Staff
0 votes
    VM creation is possible using Azure Resource Manager in a Virtual Network which was created by means of classic deployment. ?...
asked Jul 30, 2021 in Technology by JackTerrance
0 votes
    is application software necessary to run the system. if yes/No explain withe solid reason Select the correct answer from above options...
asked Dec 31, 2021 in Education by JackTerrance
0 votes
    What would you do when JVM is consuming 100% CPU & Memory on a server?...
asked Jun 11, 2021 in Technology by JackTerrance
0 votes
    I have used this link in order to create a virtual machine all in power shell. https://docs. ... JavaScript Questions for Interview, JavaScript MCQ (Multiple Choice Questions)...
asked May 13, 2022 in Education by JackTerrance
...