Path: csiph.com!news.mixmin.net!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: questions re Javascript Date: Sun, 27 Sep 2015 20:54:26 -0400 Organization: Aioe.org NNTP Server Lines: 38 Message-ID: References: <83722e36-4afe-4077-b936-229450613698@googlegroups.com> <721022ff-9cc5-4f0c-b5f7-65d791985094@googlegroups.com> NNTP-Posting-Host: NIM2IeSPVd0kE3mU1mieXw.user.speranza.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.2.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:32720 On 9/25/2015 8:20 AM, e.d.programmer@gmail.com wrote: > On Thursday, September 24, 2015 at 10:32:45 PM UTC-4, Jeff Higgins > wrote: >> Would it be fair for an instructor of early students of Java to >> state that Java source code is compiled to bytecode that is in turn >> interpreted by a Java virtual machine. > > I've always heard Java is an interpreted language, because it cannot > run by itself. A system must have Java installed to run it and that > Java install has different interpretations for the same code to run > on Windows or Mac or Linux. A native executable requires a CPU. Java byte code requires a JVM. Remember that VM mean Virtual Machine. The terms compiled language and interpreted language are very fuzzy. > Is Android Java considered compiled code? It doesn't require a > separate install for the interpreter, it just created .apk files > which are run directly by the Java based OS. The only reason that you don't need to install something is that Android ships with a VM. Or did ship. Dalvik was a true VM. ART is more of an extra compilation to native. Read: https://en.wikipedia.org/wiki/Dalvik_%28software%29 https://en.wikipedia.org/wiki/Android_Runtime Arne