Is java a compiled language - part 2

yamm_v6.6_6 said
Again, I think you are confusing the compilation process and the interpretation process with the meaning of "compiled language" and "interpreted language", mr. jschell. Compilation process and interpretation process have definitions very well established in the Computer Science, as you said, and I agree with you. There are no controversies in those definitions. On the other hand, the meaning of "compiled language" and "interpreted language" might vary, because in this case there are controversiesNo.
Compilers are one of the most well studied and well defined aspects of computer science more so than any other part of computer science.
And the Dragon book is now, and has been for at least 20 years, the recognized authoratative source of that part of computer science.
And there is nothing in there that supports your conclusion nor nothing that supports your term definitions.
A language in of itself is never compiled nor interpreted. That book specifically defines the process under which a language must be processed to become either compiled and/or interpreted.
If you wish to disagree with that then state something from that book or first demonstrate that that book is no longer the authorative source.
Finally note that in terms of computer science none of the java documents (specifications or otherwise) are suitable authoratative sources. The java specifications although adequate are far from precise in the adherence to definitions in computer science, or even in the definition of java itself.

Wow! I was just googling, and then look at what I found! This thread! Thanks, mr jschell, for your replies. I really appreciate them.
jschell wrote:
Finally note that in terms of computer science none of the java documents (specifications or otherwise) are suitable authoratative sources. The java specifications although adequate are far from precise in the adherence to definitions in computer science, or even in the definition of java itself.Well, do you want authoritative sources, right? How about this:
[_CLDC HotSpot Implementation Architecture Guide Chapter 10_|http://java.sun.com/javame/reference/docs/cldc-hi-2.0-web/doc[_CLDC HotSpot Implementation Architecture Guide Chapter 10_|http://java.sun.com/javame/reference/docs/cldc-hi-2.0-web/doc/architecture/html/VFP.html]
+The 1.1.3 release of CLDC HotSpot Implementation included limited VFP support. This feature was supported only when running in interpreted mode. In this release, full vector floating point support is provided when the virtual machine is running in compiled mode.+
[_Java Virtual Machines_|http://java.sun.com/j2se/1.4.2/docs/guide/vm/index.html]
+Adaptive compiler - Applications are launched using a standard interpreter, but the code is then analyzed as it runs to detect performance bottlenecks, or "hot spots". The Java HotSpot VMs compile those performance-critical portions of the code for a boost in performance, while avoiding unnecessary compilation of seldom-used code (most of the program). The Java HotSpot VMs also usesthe adaptive compiler to decide, on the fly, how best to optimize compiled code with techniques such as in-lining. The runtime analysis performed by the compiler allows it to eliminate guesswork in determining which optimizations will yield the largest performance benefit.+
[_CLDC HotSpot Implementation Architecture Guide Chapter 4_|http://java.sun.com/javame/reference/docs/cldc-hi-2.0-web/doc/architecture/html/DynamicCompiler.html]
+Two different compilers are contained in the CLDC HotSpot Implementation virtual machine: an adaptive, just-in-time (JIT) compiler and an ahead-of-time compiler. The JIT compiler is an adaptive compiler, because it uses data gathered at runtime to decide which methods to compile. Only the methods that execute most frequently are compiled. The other methods are interpreted by the virtual machine.+
[_Java Tuning White Paper_|http://java.sun.com/performance/reference/whitepapers/tuning.html]
+One of the reasons that it's challenging to measure Java performance is that it changes over time. At startup, the JVM typically spends some time "warming up". Depending on the JVM implementation, it may spend some time in interpreted mode while it is profiled to find the 'hot' methods. When a method gets sufficiently hot, it may be compiled and optimized into native code.+
[_Frequently Asked Questions About the Java HotSpot VM_|http://java.sun.com/docs/hotspot/HotSpotFAQ.html]
+Remember how HotSpot works. It starts by running your program with an interpreter. When it discovers that some method is "hot" -- that is, executed a lot, either because it is called a lot or because it contains loops that loop a lot -- it sends that method off to be compiled. After that one of two things will happen, either the next time the method is called the compiled version will be invoked (instead of the interpreted version) or the currently long running loop will be replaced, while still running, with the compiled method. The latter is known as "on stack replacement", or OSR.+
[_Java Technology Fundamentals Newsletter Index - Making Sense of the Java Classes & Tools: Collection Interfaces, What's New in the Java SE 6 Platform Beta 2, and More_|http://java.sun.com/mailers/newsletters/fundamentals/2006/July06.html]
+Java: A simple, object-oriented, network-savvy, interpreted, robust, secure, architecture neutral, portable, high- performance, multithreaded, dynamic language.+

Similar Messages

  • Is java interpreted or a compiled language.

    Im confused all languages aare compiled arent they?
    C++ is compiled into binary, then its ready to execute.
    Java compiled into bytecode and then interpreted bt the JVM, then passed into binary and run?
    Is this right anyone got a definitive answer?
    Cheers

    Im confused all languages aare compiled arent they?Languages are not classified into compiled and interpreted. Implementations of languages are either compilers or interpreters.
    Most implementations of languages are compilers these days. As far as I know there are no Java interpreters. Java is always compiled into bytecode or native code in all implementations I've seen.
    The bytecode can be interpreted as it usually was in the early days of Java, or compiled at run time, or pre-compiled, or can be both interpreted and compiled at run time as HotSpot does.

  • Compiled language with similar feel to php?

    I have written several utilities for my album program in php,
    but this means
    that if I give them to anyone else they have to install php
    before they can use
    them on their own computers.
    I have never used C++, but the philosophy behind php seems to
    be very similar to
    that behind it (as I remember it from one or two lectures
    about 40 years ago),
    so I thought Visual C++ might be the way to go. However the
    discussions on
    several of the C++ newsgroups I have looked at recently seem
    to be coming from
    another planet.
    Can anybody suggest which language would be most suitable for
    this purpose? The
    last high-level language I was recently proficient in was
    Fortran.
    Clancy

    Clancy wrote:
    > I have written several utilities for my album program in
    php, but this means
    > that if I give them to anyone else they have to install
    php before they can use
    > them on their own computers.
    The same would be true for most compiled languages. If you
    used Java,
    for instance, they would need to install the JVM.
    > Can anybody suggest which language would be most
    suitable for this purpose? The
    > last high-level language I was recently proficient in
    was Fortran.
    If you want to display images, you might want to investigate
    ActionScript 3.0, the language used by Flash, Flex, and AIR
    (Adobe
    Integrated Runtime):
    http://labs.adobe.com/technologies/air/
    ActionScript 3.0 is an object-oriented language, which is
    compiled into
    bytecode, and runs in the Flash Player or AIR. Of course, it
    means that
    your friends would need to install the Flash Player or AIR,
    but both are
    easy to install (basically, click and you're done).
    Learning ActionScript 3.0 to display a photo gallery might
    seem like
    overkill, but I get the impression that you're more
    interested in
    building your own application, rather than using an
    off-the-shelf
    product. I have been using ActionScript 1.0 and 2.0 for
    several years
    (even written books about it), but ActionScript 3.0 is
    completely
    different. It contains a huge number of built-in classes, so
    can feel
    overwhelming to start with. However, the syntax is very easy,
    as
    everything is written in plain English, and it uses the same
    looping and
    conditional structures as PHP.
    The best way to work with ActionScript is with Flex Builder
    (a new
    version, Flex Builder 3, is due out later this year, but you
    can try it
    out as a 30-day free trial to see if it appeals to you). The
    best way to
    learn ActionScript 3.0 is with "Essential ActionScript 3.0"
    by Colin
    Moock. It has just been published by O'Reilly. I'm reading
    it, and it's
    excellent.
    David Powers, Adobe Community Expert
    Author, "The Essential Guide to Dreamweaver CS3" (friends of
    ED)
    Author, "PHP Solutions" (friends of ED)
    http://foundationphp.com/

  • Java Class (Compiled with JDK6_u12) that works with UCCX 9.0.2, don´t work with UCCX 10.5

    I have a Java Class (Compiled with JDK6_u12) that works with UCCX 9.0.2, after upgrade it don´t work with UCCX 10.5
    I get the error message: "Failed to access the WSDL at: https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. It failed with: Got java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty while opening stream from https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL.; nested exception is: javax.xml.ws.WebServiceException: Failed to access the WSDL at: https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. It failed with: Got java.lang.RuntimeException: Unexpected error: java.security.InvalidAlgorithmParameterException: the trustAnchors parameter must be non-empty while opening stream from https://www.brightnavigator.se/brightservice/brightservice.asmx?WSDL. (line: 1, col: 47)
    Does anyone know about this ?

    Did you ever find a resolution to this issue? I have a similar issue after upgrading from 7 to 10.5. I have loaded all provided certificates to the tomcat-trust store, restarted Tomcat Services and still get the same error
    Thanks

  • On rented movies, why do subtitles remain onscreen, even after the foreign language part is over?

    I've never had this problem before, until the last two movies I've rented. Subtitles come on during a foreign language part, and then remain onscreen indefinitely. I've turned off closed captioning on both my Apple TV and on my TV, to no avail.
    I would think the subtitles would be 'embedded' in the movie (as part of the movie image); these appear to be closed captioning, generated by the Apple TV or myTV.
    Pretty annoying. Any ideas on how to fix this?
    Thx

    I see the same problem. In fact you can see the movie if you click on the arrow next to the iPhone icon under "Devices" in iTunes. then click on "rented movies". the old movie will still be there, although you can't remove it or even un-check it. My guess is that it will delete itself after the rental period, but this is clearly a bug. To avoid this in the future I will try to move the video off my iphone before deleting.

  • Java application compiles java files in memory

    how can I use java application program (that may call method runtime exec or some other techniques) to compile the other java files that were already loaded in memory. (I can not copy those target files to the hard disk with extension java, then compile for security reason).

    And once they are compiled, where do you plan to put the compiled .class files? Same security problem, right? Perhaps you planned to load and use them "from memory" somehow? This would be a different security problem. Perhaps you need to rethink what you are doing.

  • Limit query for Java Persistence Query Language

    Hi,
    Anybody know Java Persistence Query Language can support limit querry to limit the number of row return(Like SQL LIMIT clause)?
    Thanks

    I think the javax.persistence.Query methods setFirstResult and setMaxResults are what you need...

  • Is Java Compiler a part of JVM or JRE but not JVM? ?

    hi friends... i need clarification....I am completely confused about how things go about from d time v compile to execution...Please can anybody give me a complete description

    Ok fine.....thanks....But suppose now i take a
    compiled program from 1 m/c to another....Now JIT
    comes into picture....So JIT must understand
    bytecodes....So does JIT belong to JRE ....Correct me
    if i am wrongJIT belongs to the JVM.
    Could you please have the courtesy of not typing like a seven-year-old girlie?

  • Need Help Please - I can't get Java to compile my programs

    Hi, I'm taking a programming course in college and want to be able to compile my java programs at my home laptop instead of just at the lab...
    However, when I write my code and try to compile with TextPad, there is no "Compile" option....Instead there is a grayed-out option of "User-tool"...
    I have installed the J2SE Developmental Kit 5.0 Update 11 and the JavaRuntime Environment 5.0 Update 11....In the labs, the computers have the exact same thing except they are the Update 9 versions....
    What am I missing? Thanks for any help you can offer....

    > TextPad isn't part of the JDK nor runtime of Java,
    and this isn't a TextPad product support site.
    (Edit: Except when yawmark is around)
    Pish. I pointed himmer to the proper place. ;o)
    It would be advisable to lose your addiction to IDE's
    anyway (like TextPad)
    Pish. TextPad isn't an IDE. It's a feature-rich text editor that happens to let you run commands from within the program (though I don't argue with the benefit of compiling/executing from the CL when learning).
    ~

  • New java-like scripting language w/ powerful regex

    Hi,
    Just wanted to let you know that there's now a new scripting language called P~ with the following important aspects:
    1) matches and exceeds Perl regex solveability -- e.g. offers full regex-based boolean query on non-indexed corpus, offers completely general side-effects, more accurate than Perl code assertions
    2) basic grammar is very Java like
    3) regex grammar is algebraic, not metacharacter-based, leads to more readable and maintainable solutions to hard problems
    4) offers an easy tool to debug matching behavior of your regexes (rules)
    5) though a full featured scripting language, you can write scriptlets and call them from Java classes, with arguments. Allows you to use your regex solutions in Java applications.
    6) the language is offered as a Java library, as well as a standalone application that runs the library. This means that your scripts can import java classes available in the classpath, you can leverage existing Java libraries.
    Check out the website and try it out: http://ptilde.pbwiki.com
    Andy

    True to an extent. We don't yet have lookaround assertions and won't have backreferencing any time soon. But there are same-time assertions which offer much of the same, and allow for boolean query.
    More accurate general statement insertion side-effects (than Perl code assertions) means that your statements are executed if and only they wrap a subpattern that is part of the ultimate best match -- Perl code assertions execute when the automata encounters them, even if where they are in the regex is ultimately not part of the match, or even if there is no match at all. This aspect is a huge part of the solveability advantage.
    As to the regex test cases, there are about 1000, and we will post them soon.

  • Custom Compiler Language

    I create my own texteditor,the plan is i want to trap the error message that generate from the java compiler to my language, so i can display the error message with my own words (not an exception errors)..
    What should i do, to solve this?
    Thanks...

    Learn English first and then try to word your question in gramatically and syntactically correct language.Maybe then someone will understand what you're trying to achieve.
    I think u dont have skills to solve this? i think u're not an good answer on every forum you joined, am i right?
    My question is, When u're compiling your program, and there's error on your code, java compiler generates an error message, is that anyway or how to change this message or how to trap this message, so i can change into my own words? understood....
    if u dont, i dont know how to speak with the alien language....
    thanks to everyone who tried answer this...
    Bonjour....

  • Java DC's public parts for otther DCs' dependencies

    Hello experts.
    We have just come across the following trouble working within one development team.
    One of us developed some Java Classes components, created public part (Compilations and one Assembly) and inserted necessary developed Java classes to there. Assigned necessary permissions. Then he checked in created activity. By the way developed component is available for other team members.
    Another person syncs existing software componets, tries to use the created Java class component and he fails. Import of Java classes is impossible.
    It turned out that created public parts are unavailable. He isn't able to define dependency properties for the public parts. Public parts are highlighted in red and they are unmanaged for other developers to set dependecies.
    But if he creates project of the Java class component the public parts are available.
    I suppose the public parts must be available withot creation of the project.
    My question is that what we need to fix and pay attantion.
    In general, how to implement public parts correctly? How to make them available for other developer to use as dependecies?
    Could you please help us with your valuable pieces of advise?
    Sincerely,
    Anton

    Thank you for reply, but it is not necessary to create project to use public parts.
    So, our problem is that we don't activate our activiti in DTR and our DC's ae synced with active source where there is no public parts we provided.
    When we sync with inactive DTR source we have all necessary public parts.
    Thanks

  • Java Threads compilation problem

    Hi everyone,
    I've having problems getting a simple thread program to compile, the programs says " ; " expected when there is already one present. I've gone through the program many times and still can't put my finger on whats going wrong. If someone could take a quick look and if possible tell me where I am going wrong.
    Many Thanks
    Its class ThreadA that will not compile
    ***code********************************************
    public class ThreadA extends Thread
    private int id;
    public ThreadA(int i) (id = i);
    public void run()
    for (int i=0}; i < 10; i++);
    try {sleep(1000};)catch (InterruptedException e)();
    System.out.println("Output from Thread " + id);
    import java.io.*;
    public class TestThreads1
    public static void main (String args [] )
    Thread t1 = new ThreadA (1);
    Thread t2 = new ThreadA (2);
    Thread t3 = new ThreadA (3);
    t1.start();
    t2.start();
    t3.start();
    **code***********************************************************

    public class ThreadA extends Thread
    private int id;
    public ThreadA(int i) (id = i); // <-- problem
    public void run()
    for (int i=0}; i < 10; i++); // <-- two problems
    try {sleep(1000};)catch (InterruptedException e)(); // <-- more problems
    System.out.println("Output from Thread " + id);
    }

  • JSP precompilation and my .java files compilation issues /  building WAR file using ANT

    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

    Kevin Price wrote:
    Hello.
    I am new to working with WAR files and the whole process of it. A little
    background on what we are using. We are using, WLS 6.1 SP3. I am using the
    ant.bat that is supplied in the bin directory of the WLS install.
    I am trying to work with ANT and getting it to build the file. I am making
    progress, but at a point where I am having trouble getting my java code
    files to compile using ant. I am having one issue and looking to do one
    other item.
    1) I would like to precompile the JSPs if possible prior to putting into the
    WAR file. Not sure if this is done or not, but there was a utility when I
    was working with ibm's app server that gave us the ability to do a batch
    complile. Was thinking that maybe a similair concept is possibly here.you can use weblogic.jspc
    http://e-docs.bea.com/wls/docs70/jsp/reference.html#57794
    or just set the precompile flag in weblogic.xml
    You can configure WebLogic Server to precompile your JSPs when a Web
    Application is deployed or re-deployed or when WebLogic Server starts up
    by setting the precompile parameter to true in the <jsp-descriptor>
    element of the weblogic.xml deployment descriptor.
    >
    2) Having issue getting ant to compile code properly. In the compile
    section of the build.xml file for ant, I tell it where the source files are,
    and the destionation folder for the compiled class files. I then try to set
    the classpath so that it finds the .jar files that are necessary for my
    source files to complile. But, it won't find them. And not sure how come.
    I may be going about this all wrong, but dont know. Here is the compile
    section of the build.xml I am using:
    <target name="compile" depends="prepare">
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    classpath="$(lib.home)"
    debug="on" optimize="on" deprecation="off"/>
    </target>
    maybe because you are not using curly braces there on lib.home??
    if you do it the way above, you would have to list all your jars
    classpath="$(lib.home)\lib1.jar:$(lib.home)\lib2.jar"
    or you can nest
    <javac srcdir="classes" destdir="${deploy.home}/WEB-INF/classes"
    debug="on" optimize="on" deprecation="off">
         <classpath>
              <fileset dir="${lib.home}" includes="*.jar" />
         </classpath>
    </javac>
    One note, I've tried many different items in the classpath line, which
    don't work. if I do *.jar it fails at complie time, invalid argument. As
    well as if I use *.* and so on. if I list the explicit file names, it still
    doesn't seem to find them.
    I was wondering if anyone could help, if you need anymore information let me
    know, I can send the entire build.xml if necessary. I may be missing
    items, seeing that this is my first try at using ANT.
    Any help is appreciated and thanks in advance. Hopefully not sounding too
    off the wall. Hopefully get some clarification and understanding.
    Thank you.
    Kevin.

  • User defined java function-compilation error! Activation cancelled

    Hi all!
    I have written an User defined Function in java for converting XML to PDF which is available at this blog:
    /people/divya.vidyanandanprabhu/blog/2005/06/28/converting-xml-to-pdf-using-xi
    I added both dom4j-1.6.1.jar and itext-1.4.1.jar files in (XIserver machine)D:/usr/sap/....server0/bin.
    When i try to activate in IR, i got the following error.
    Activation of the change list canceled Check result for Message Mapping test | http://httpadp.com/send:  Starting compilation  Source code has syntax error:  D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7bf962e0f21411daae8a00111120e6db/source/com/sap/xi/tf/_test_.java:3: package com.xml2pdf does not exist import com.sap.aii.mappingtool.tf3.;import com.sap.aii.mappingtool.tf3.rt.;import java.util.;import java.io.; import java.lang.reflect.*;import com.xml2pdf.XmlToPdf; ^ D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7bf962e0f21411daae8a00111120e6db/source/com/sap/xi/tf/_test_.java:51: cannot resolve symbol symbol : class XmlToPdf location: class com.sap.xi.tf._test_ XmlToPdf x = new XmlToPdf("D:
    qf
    source
    Input.xml", "D:
    qf
    target
    Output.pdf"); ^ D:/usr/sap/QN7/DVEBMGS00/j2ee/cluster/server0/./temp/classpath_resolver/Map7bf962e0f21411daae8a00111120e6db/source/com/sap/xi/tf/_test_.java:51: cannot resolve symbol symbol : class XmlToPdf location: class com.sap.xi.tf._test_ XmlToPdf x = new XmlToPdf("D:
    qf
    source
    Input.xml", "D:
    qf
    target
    Output.pdf");

    Hi
    My java program is:
    import com.xml2pdf.XmlToPdf;
    public String testing(String a,String b,String c,Container container){
    XmlToPdf  x = new XmlToPdf("D:
    qf
    source
    Input.xml", "D:
    qf
    target
    Output.pdf");
      x.Convet();
      return "";
    Can you please figureout any errors in my prg.
    I have imported the 2(itext-1.4.1 and dom4j-1.6.1) jars into Imported Archives in my scenario in IR.
    I placed these jars in D:/usr/sap/..../server0/bin
    also. I followed the blog thoroughly and carefully.
    Thanks a lot for your suggestion.

Maybe you are looking for

  • How to hide a single value node hierarchy in the query designer

    Hi, I would like to perform a calculation  in the infocube. It concern  a count "Nb of different customers" with the following hierarchy : Country / region / City. This KF would be read at the same time by city, region and country, and  certain custo

  • How do I fix my itouch if the screen is flashing?

    How do I fix my itouch if the screen is flashing purple, black, and white streaks and is unresponsiveness to the power on/off button?

  • SQL Login "disabled" flag does not work with asymmetric key??

    If I create a normal interactive SQL login, the Disabled flag for the login controls whether that user can log in with the login name and password.  For example, ALTER LOGIN MyUser DISABLE will prevent anyone from logging in with this MyUser login. H

  • How to transfer material from blocked stock  to scrap location

    Dear Experts,     Weu2019ve put some of raw material into blocked stock. Now we want to scrap these materials & for that Iu2019m trying to take it to unrestricted stock from blocked stock by MIGO (transfer posting ,Mvt type=343). But during that syst

  • Install/Upgrade from 9.3.3 to 11.1.2.1

    Gurus, We are upgrading from 9.3.3 to 11.1.2.1(Distributed environment) and have gone through the 11.1.2.1 start here , installation and configuration guides. Existing environment: Machine1(Windows 2003 R2): Hyperion Shared Services, EAS webapp,Essba