Java 1.1.x versus 1.4.x

Hi,
I am interested is the differents between Java 1.1 versus 1.4. I can imagine that 1.4 would be better because of Swing and XML etc. but what is more important to me is to know if 1.4 is more stable, faster, reliable, etc then 1.1.
Also it is known that Swing classes aren't thread safe. Is this still an issue in 1.4?
Can anyone also point me some articles or whitepapers were people investigated the differences?
Kinds Regards,
Arno

I don't know how stable 1.4 is, but you can use 1.3.1 instead if you are in doubt and wait for 1.4.1.
The only reason why you would want to use 1.1.x, is that it can run in the old browsers without a plugin. 1.2-1.4 has the same classes as 1.1, plus many more new features.
I don't really feel that swing is faster than awt, it is at least slower to start a swing gui than a gui build with awt components only, probably because the swing gui needs to load many more classes. But you can do much more with swing without making customized components.
If you want to know what the new features are from one release to another, check the docs:
http://java.sun.com/products/jdk/1.2/docs/relnotes/features.html
http://java.sun.com/products/jdk/1.3/docs/relnotes/features.html
http://java.sun.com/j2se/1.4/docs/relnotes/features.html

Similar Messages

  • Java.util.concurrency.Lock versus synchronized()

    Which method is more efficient? or are they both equally efficient for different uses?
    Thanks,
    Gili

    did you read the doc?
    For me it was the first time and I just glanced over it, but two nice features stick out:
    1) whereas a synchronized method will block a thread until the existing thread has left, a thread attempting to acquire a lock could wisely decide to try again later by checking the lock
    2) the ReadWriteLock sub-interface of Lock allows an exclusive many-readers orone-writer access which cannot be acheived through basic method serialization

  • Deploying InfoBus Java Applet

    I have an Applet which will be utilized by only 10 - 20 users. Is is possible to deploy the InfoBus Applet in "local mode" for all 20 users? What are the benefits or penalties of deploying an InfoBus Java Applet through VisiBroker versus a local deployment? Thanks in advance!

    Your applet can be deployed in "Local mode". However, each time the user runs the applet, the associated archives will be downloaded from the server. The drawback of this approach is the download time for the applet and archives even on a LAN. Deploying your applet via Visibroker can reduce the number of archives on the client since the BC4J archives will reside in the middle tier. This requires a more complicated deployment model but the end user experience may be better since the download time will be less.
    - PSW

  • Java 1.2 Versus Java 1.4?

    This may sound quite strange, but I have a java program which uses Runtime.getRuntime().exec(...) and runs a perl process. The thing is when I run it using java 1.4.1 on a Solaris 9 platform, the perl script fails. However, if I use java 1.2 on Solaris 9 platform, the perl script works fine. However, java 1.2 is much older so I'm hestitant to use it.
    What differences are there in java 1.2 versus 1.4 with regards to the Runtime.getRuntime exec???

    Unfortunately this stupid perl script isn't that
    easy. It uses Rational cqperl, then some libraries
    and modules I don't understand. I can't even find
    the actual code it uses that uses flexlm.
    That's why I was asking what is different with java
    1.2 and java 1.4. Is there some way that Runtime
    acts differently?Not in any fundamental way that I am aware of.
    The fact that the script is running at all though tells me that the problem is on the PERL side of things. I suspect that some of those modules and libraries are not being loaded correctly or the same way on both systems.
    I fear the answer is that you need to figure out what components the script needs to run and make sure that it has them under all circumstances. This is like a classpath problem except it is with your PERL script so you need to solve it as a PERL problem.
    Again if it wasn't running at all that would be one concern but it is running just not finding all it's bits.. a problem of that nature strongly indicates that the issue is happening once the process has already been spawned (correctly) and so is out of the realm of the Java part of your program.

  • Unbiased Java versus C# comparison

    I found this feature-by-feature, unbiased and informatve Java versus C# comparison, and thought that perhaps a few of you may be interested in it:
    http://www.prism.gatech.edu/~gte855q/CsharpVsJava.html
    Every comparison that I've read up to this point has either been written by Java or MS evangelists, and this one is definitely refreshing break from the typical essay.

    Agreed. However, the decision may generalize even further in many cases, and become "Industry supported platform of technologies (Java) or Microsoft proprietarization (.NET)." I still have not seen an unbiased comparison of the platforms, rather than languages, that goes as in depth as this one... if anybody else has, I'd love to see a link to it?
    For those that will be using both technologies, such as myself, this paper helps bridge the language gaps between the two and make transitioning simple. It's more helpful at the post-decision (to use .NET) level, rather than pre-decision.

  • Java Desktop versus Enterprise client

    What is the difference between Java Desktop Application versus Enterprise Applciation client?

    Desktop Applicatoin is local to your computer, it may have connections to the network, such as MS-Word will connect to the internet for updates and help files.
    An Enterprise Application is developed on multiple tiers--local clients, web servers, data servers, and etc. Processing done in an enterprise Applicatoin is distributed amoungst the different tiers.

  • Java Built-in regular expressions versus Jakarta

    Are there any advantages to using the Jakarta regular expression package, over the built-in Java regular expressions?
    I wasn't able to find much information on the Jakarta regexp package, except for the Javadoc and I didn't find that very informative.
    Thanks!
    Jeff

    Well, the String.replaceAll(String, String) method uses the Java regexp internally, and I'm not sure there's a way to change that. So that at least is one place that will use it. I don't know for sure, but Jakarta's ORO is supposed to be fully compatible with Perl 5, and also supports other regexp types as well, so if you need that aspect of it, then go with Jakarta. I heard some of Java's are a little limited in some capabilities. I can't find any particular pages that refer to any comparisons of them at to compare runtime performance.

  • Visual Studio 6 versus Java Advantages?

    Hi,
    I am very new on Java and SWING. Can anyone tell me what (if any) advantages to switching from GUI developement with Visual C++ Version 6.0 OR .NET Studio to rewriting the project in JAVA SWING.
    I know that 1 disadvantage would be the slowness from the Java VM.
    The advantage would be JAVA SWING can handle 256 color binary image display (Correct?) as opposed to
    the (8 bit grainy picture bitmap of Visual Studio 6)
    If anyone can provide some feedback, that would be great.
    Thanks for reading,
    Rage

    comicrage,
    Actually only you can identify the real advantages or disadvantages to rewrite a project and use certain tools. I can offer you my opinions based on my experience, and since you asked, here they are:
    I have not experienced this "slowness" from the Java VM that everyone seems to be going on about. There is a pause to start when the VM starts up, but then there is in VB or .Net also.
    I find the ability to move a project from machine to machine and OS to OS with out rewrite, tinking the code, or recompiling very very refreshing. I've done entire projects on Windows only to find they are implemented in part or their entirety on Linix or other NON-Windows product. I also like being able to update the VM without loosing the intended look, rewriting code, teaking code, or recompiling my project.
    I cannot explain in words the satisfaction that it gives me to see my code be boring: sitting on the client, server, or middle tier and just running, unobtrusivly, on a 24 X 7 basis; never complaining, dying, or acting out... just doing what I intended it to do--yes, even when there are OS updates and new 3rd party vendor packages installed, it still is well minded.
    I enjoy the product not bleeding the resources out and me not having to do a militant GC effort in my code to achieve that.
    I enjoy connecting and being able to carry out my entire transaction without err, but on the occasion that something does happen, the ability to easily and gracefully recover and reinitiate.
    Well, these are my thoughts... I program in C/C++, VB, C#, Java, ASP, JSP, and .Net.
    My parting comment would be though, if you do not use Java, don't waste your time in MS version 6.x (unless you have to maintain old windows boxes--95, 98, etc), hit .Net heavily, it is here to stay for the good or bad.
    ... Oh, but then that is another thing I enjoy about Java: it runs on all those old environments too.

  • ASP versus WebDynpro for Java

    Hello All,
       I would like discuss and know more on the performance issues of WebDynpro 4 Java and Asp. We are planning to develop a news page in WebDynpro, which is presently in asp. The news data would be fed in from a document management system. (The development is done on NW04, EP6.0)
    The main points are :
    1.Since its a straight forward data retrieval and display(w/o validation) from backend, would WebDynpro actually have an edge over asp?
    2.With WebDynpro, since the data is dynamic would dynamic generation of the UI elements have a hit on the performance.
    3.With future in mind, if data is going to be retrieved from KM, then would that be a valid argument for going for WebDynpro.
    4. Since the other applications are also developed in WebDynpro, we should go in for WebDynpro.
    All ideas are welcome and well appreciated(as i haven't beein in ASP world ).
    Thank you,
    Sharath

    Hi Sharath,
    I can contribute something to you in this regard.
    I m interested to give my view on point no:2, 3 and 4
    2.With WebDynpro, since the data is dynamic would dynamic generation of the UI elements have a hit on the performance
    >>Definitly generation of UI elements will hit the performance as for as my knowldege is concerned.
    In webdynpro, you know you just have to use UI elements which are there already. no need to create them. so, even if you don't want to use some UI elements, those are loaded in the server. this obviously adds a load on the performance issue.
    but if you consdier ASP/JSP, where in you have to write a code to develop a single button on the UI. so, it's in your hand as many as UI elements you want. so, this this reduces of having extra UI elemets to be developed and hence performance of loading is better as compared to ASP/JSP.
    I would like to give simple real time ex:(as an analogy) at this point.
    If You want to book room in 5 star hotel, they by default charge for AC, FRIDGE, HEATER..etc  they are available,even if you don't want to use them. so,you need to shell out extra bucks.
    but if you go far some yathri nivas or any common guest house, where you can have value added services infront of you.
    So, Star hotel::::webdynpro
          common hotels::::ASP/JSP
    So, it depends on purely your requirements.
    then I will come to point no:3.& 4
    3.With future in mind, if data is going to be retrieved from KM, then would that be a valid argument for going for WebDynpro.
    4. Since the other applications are also developed in WebDynpro, we should go in for WebDynpro.
    >>> there are numerous advantages of using webdynpro inspite of some performance issue, I can list as follows as an argument over here.
    Improve User Experience through a "High Fidelity Web UI"
    1. Browser based front-end, zero footprint
    2. Flicker-free screen, minimal refreshes
    3. Client-side dynamics
    4. Minimal response times
    5. Personalization of the user interface
    Deliver an Enterprise Quality Web Development Environment
    1. Minimize coding, maximize design
    2. Support reuse of components
    3. Support web services and data-binding
    4. Separate layout and programming logic
    Achieve Independence...
    1. From platform
    2. From UI technology
    above are just a contribution, which are of my interest.

  • Possibilities Web Dynpro for ABAP versus JAVA

    Hello,
    I would like to know whether WebDynpro for ABAP and Java have the same options, abilities and possibilities. e'm I able to produce the same results with WebDynpro for ABAP as Java. I would like to standardize on just one of the two and be sure that it will to limit me later.
    Thanks in advance.

    Hi Maurice,
    If you make have to make a choice you have to consider the followings:
    - Which release do you have? Java version is available since 6.30/6.40, the ABAP only as of 7.00.
    - Performance. If you have your WD4ABAP and backend (eg ERP) in the same system you gain a lot of performance
    - Other small difference, that Java version has a much nicer graphical editor, which I miss from the ABAP version
    These are, which came to my mind.
    Best regards,
    Peter

  • Java versus PL/SQL Stored Procedure Issues

    I am getting a result that is 30 times slower for Java when compared with PLSQL. Can you tell me if that is normal or am I missing something?
    Thanks in advance for your help,
    Gaurav Pal
    Java Developer,
    SCJP 1.1, SCJP 2, SCJD 2
    Timing results
    ---------------- Java ------------------------
    Total Time taken for 10 calls: 4667
    Result: 466 Time: 466
    ---------------- PLSQL ------------------------
    Total Time taken for 10 calls: 150
    Result: 466 Time: 15
    Java Code
    public static int getCursorCount()
    int count = 0;
    //define iterator for select
    count_iter myIter = null;
    try
    #sql myIter = { SELECT lastname FROM employee };
    while(myIter.next())
    count++;
    myIter.close();
    catch(SQLException excp)
    return count;
    PL/SQL Code
    function get_count_cursor_sf
    return
    number
    is
    cursor count_cursor is
    select lastname from employee;
    v_return_count number := 0;
    v_name employee.lastname%type;
    begin
    open count_cursor;
    fetch count_cursor into v_name;
    while (count_cursor%found) loop
    fetch count_cursor into v_name;
    v_return_count := v_return_count + 1;
    end loop;
    --Return the variable
    return v_return_count;
    end ;
    Calling Code
    public class DBCall
    public static void main(String args[])
    try
    makeJavaCalls();
    makePLSQLCalls();
    catch(Exception excp)
    excp.printStackTrace();
    public static Connection getConnection() throws Exception
    Class.forName("oracle.jdbc.driver.OracleDriver");
    return DriverManager.getConnection("jdbc:oracle:thin:@10.0.0.3:1521:oracleee","rda","rdauser");
    public static void makePLSQLCalls() throws Exception
    int count = 10;
    long time = 0;
    int result = 0;
    while(count > 0)
    Connection conn = getConnection();
    CallableStatement cs = conn.prepareCall("{? = call rda_plsql_pkg.get_count_cursor_sf()}");
    cs.registerOutParameter(1, Types.INTEGER);
    long before = System.currentTimeMillis();
    cs.execute();
    result = cs.getInt(1);
    long after = System.currentTimeMillis();
    time = time + (after - before);
    cs.close();
    conn.close();
    count--;
    System.out.println("---------------- PLSQL ------------------------");
    System.out.println("Total Time taken for 10 calls: " + time);
    System.out.println("Result: " + result + " Time: " + (time/10));
    public static void makeJavaCalls() throws Exception
    int count = 10;
    long time = 0;
    int result = 0;
    while(count > 0)
    Connection conn = getConnection();
    CallableStatement cs = conn.prepareCall("{? = call dorknight.getcursorcount()}");
    cs.registerOutParameter(1, Types.INTEGER);
    long before = System.currentTimeMillis();
    cs.execute();
    result = cs.getInt(1);
    long after = System.currentTimeMillis();
    time = time + (after - before);
    cs.close();
    conn.close();
    count--;
    System.out.println("---------------- Java ------------------------");
    System.out.println("Total Time taken for 10 calls: " + time);
    System.out.println("Result: " + result + " Time: " + (time/10));
    null

    A big contributor to the behavior seen here is that there is a one-time overhead per session (= per database connection) to start the JavaVM and also (in 8.1.6 and earlier) to initialize the SQLJ runtime (via reflection).
    Keeping the same connection for subsequent calls to Java (which is the more typical scenario, anyway) will result in a rather considerable speedup.

  • Java BluePrints versus Jakarta

    I created a new Visual Web Pack Application, for source structure I chose Jakarta (the other option is Java BluePrints), because I am going to deploy my application in Tomcat 5.5.17. For server I obviously chose Tomcat 5.5.17.
    Also, I added the BluePrints AJAX components 0.1.1 to the component libraries of my project.
    However when I wanted to drag an Auto Complete Text Field on one of my project's page this turned out to be impossible. I guess because I chose Jarkarta as source structure instead of Java BluePrints.
    Does anyone know how to solve this problem?
    What are the consequences of choosing Java BluePrints as source structure when you want to deploy in Tomcat?
    Thanks,
    Annet.

    Well, the String.replaceAll(String, String) method uses the Java regexp internally, and I'm not sure there's a way to change that. So that at least is one place that will use it. I don't know for sure, but Jakarta's ORO is supposed to be fully compatible with Perl 5, and also supports other regexp types as well, so if you need that aspect of it, then go with Jakarta. I heard some of Java's are a little limited in some capabilities. I can't find any particular pages that refer to any comparisons of them at to compare runtime performance.

  • Java techlogies versus PHP

    Hello,
    we will have big web project. And now I must choise techlogies. All projects were create with PHP.
    Now I think change technology, because I think PHP will small for this project. This project can have more that 1000 users one time. This site will have chat system, and users will often make requests.
    Can I say, what Java will be better decision in this project?
    Can you give examples where Java better in big projects?
    I think about servlets and EJB.
    I will be grateful for answers.

    PHP or Java?
    The basic difference between Java and PHP is that with Java you can have actual object model underneath - n-tier application. That comes handfull when you handle a lot of users and various datasources.
    Another thing is that with use of object models like EJB or COM+, .NET you can use transaction framework already built into the system or object pooling (Here maybe I can mention connection pooling - in PHP I think each page opens its own connection (In java the same connection can be used by many clients)). I won't mention the separation od data and business logic in this level.
    In general you also can test the whole application, which I'm not sure if you can with PHP.

  • Article on Performance of Java versus C++

    http://java.about.com/gi/dynamic/offsite.htm?site=http://www.idiom.com/%257Ezilla/Computer/javaCbenchmark.html

    Seems like a relatively unbiased evaluation.

  • DB procedure validation versus JAVA method validation

    Hi ,
    We have an application that is developed with Oracle Forms as well as Java (ADF )
    Now since ADF is the newer application, it was told to reduce the development time but provide efficient code. Now with Forms each field validation called a procedure and returned an error.
    For example if Name is validated, They have a procedure VALIDATE_NAME proc. Why they have separated this is cause based on different customers and different products, the name validation differs. So the in parameters are Field val, Product, customertype... etc. Like this, there are 20 VALIDATE_FIELD procedures for respective fields.
    Now to reduce duplication, I can call each procedure on each field. but that would means 20 DB additional calls for each procedure. If I write this logic in java it means I increase development time and probably increase probability of error.
    Which is the best practice for VALIDATION.

    Hi,
    you already mentioned the pros and cons of the approaches. I don't think that it is good practice to directly call the PLSQL validation from Java as it means you wont be able to change it easily in the future. I would look for an abstraction layer that initially (for the time being) accesses the database for validation (maybe caching some validation policies upon application instance start) and later then can be changed to use pure Java validation rules. One thing coming to my mind would be something like a rules engine that reads the validation conditions from the database and that is accessed from Java. If your manager says you should reduce development time then my impression is that the choice is not yours and you will have to use the database (though it feels wrong).
    Frank

Maybe you are looking for

  • Confirmation Reversal - PO Line Item Edit Issue

    As per the business rule, if you reverse/delete the confirmation on a line item on the PO, you should be able to edit that line item. However, in my case, even after deleting confirmation also, PO line item cannot be changed. Generally when you delet

  • Mission Control keyboard shortcut problems

    I have a problem with my keyboard shortcuts (changing space with Mission Control) Sometimes they do not work... then I have to reset PRAM (using this guide http://support.apple.com/kb/ht1379) and then it works again. Then after some time it fails aga

  • Bad user agent error message

    my homepage is uk.yahoo.com. there are a number of video adverts which are blank except for this ; bad user agent

  • How to add a field in the layer

    Hello, How can I add a field in the layer? We are in the interaction center and I enchance the the component IUICMD. I already created a atribute but doesn't happen in the screen. Best regards, Caíque Escaler

  • Background jobs for ccbpm

    Hi I've constructed a process JDBC -> ccbpm -> soap The jdbc->ccbpm message interface works correctly but it doesn't start the ccbpm process is there a background job that needs to be scheduled to monitor for ccbpm events or is there some config that