Java Gurus: How does Java compare to 4GLs?

I've been using Java for a year now. I love Java. As a 3GL, how does Java compare to a 4GL?
(I can't say I know a whole lot about fourth generation languages. The only 4GL that I'm a little familiar with is Clarion.)
What are your thoughts?

What is 3GLs and 4GLs? You mean Programming Language and Scripting Language?

Similar Messages

  • How does java.exe behave if I only use -Xmsn option?

    Hi,
    if I only set the -Xmsn option and do not set -Xmxn option when I launch my Java application, how does java.exe behave? Does the heap will automatically grow like what Bea's JRockit does when my application requires more memory?
    I use JDK 5.0.
    Thanks for your help!

    If your application needs the space, the JVM will grow the heap up to the
    default value of -Xmx. Note that it will run a garbage collection cycle before
    expanding the heap, and it may take a few or several cycles to expand to
    the -Xmx value. How fast or slow it expands depends somewhat on the
    behavior of your application (how much it allocates and how long the
    objects live).
    The default value of -Xmx depends on the platform; see
    http://java.sun.com/docs/hotspot/gc5.0/ergo5.html.

  • How does java support the concept of destructor?

    How does java support the concept of destructor?

    @KunalSurana: before you flood the forum with basic questions, do us a favour and read.
    [Sun's basic Java tutorial|http://java.sun.com/docs/books/tutorial/]
    [Sun's New To Java Center|http://java.sun.com/learning/new2java/index.html]
    Includes an overview of what Java is, instructions for setting up Java, an intro to programming (that includes links to the above tutorial or to parts of it), quizzes, a list of resources, and info on certification and courses.
    jGuru
    A general Java resource site. Includes FAQs, forums, courses, more.
    JavaRanch
    To quote the tagline on their homepage: "a friendly place for Java greenhorns." FAQs, forums (moderated, I believe), sample code, all kinds of goodies for newbies. From what I've heard, they live up to the "friendly" claim.
    [Yawmarks List|http://forums.devshed.com/java-help-9/resources-for-learning-java-249225.html]
    [The Java Developers Almanac|http://www.amazon.com/exec/obidos/tg/detail/-/0201752808?v=glance]
    [http://javaalmanac.com|http://javaalmanac.com]
    Bruce Eckel's [Thinking in Java(Available online.)|http://mindview.net/Books/DownloadSites]
    Joshua Bloch's [Effective Java|http://www.amazon.co.uk/exec/obidos/Author=Bloch,%20Josh]
    Bert Bates and Kathy Sierra's [Head First Java|http://www.amazon.com/exec/obidos/tg/detail/-/0596004656?v=glance ]
    James Gosling's [The Java Programming Language|http://www.bookpool.com/sm/0321349806]
    Gosling is the creator of Java. It doesn't get much more authoritative than this.
    Joshua Bloch and Neal Gafter [Java Puzzlers.|http://www.javapuzzlers.com/]

  • How does java implements runtime polymorphism.?

    Hi all.
    we know how does runtime polymorphism take place in java.
    But my quesions is , how does java implement it internally.
    in C++, with the use of keyword virtual , complier decides to make a call at runtime using virtual table and Vptr.
    like in c++,
    class base {
    public:
    virtual void show(){
    cout<<"I am in base class"<<endl;
    class child : public base {
    public:
    void show(){
    cout<<" I am in child class"<<endl;
    int main(){
    base*p = new child();
    p->show();
    return 0;
    out put - I am in child class.
    but if we remove the virtual keyword then output
    I am in base class..
    We know how it happens
    but in java
    class base {
    void show(){
    System.out.println("I am in base class");
    class child extends base {
    void show(){
    System.out.println(" I am in child class");
    class demo {
    public static void main(string args[ ]){
    base b;
    child c = new child();
    b = c;
    b.show();
    output is - I am in child class
    but how can i bring the output as
    I am in base class ---
    complier knows that b is base reference so y doesnt it just use base version.

    if all methods are virtual..then we should always have runtime binding but we do have early biding too.
    shouldnt we able to call base verison using a base reference variable like in c++.
    May be I m mixing big times java n c++. But it seems to me as core java is much like c++ . The things u can do in c++ , u can do same in java in different ways.

  • How does Blogger compare to iWeb 09, and starting tips?

    I've never had a blog site, but I would like to start one, with an 'About me', posts, and comment ability that I can handle. Some have recommended opening a free site with Blogger. Now that I have iWeb 09 (3.0.1, still unopened) and a MobileMe account, I'd like to ask:
    1) How does iWeb compare to Blogger (or any other blogging software)
    2) What should I know before starting a blog with iWeb?
    Best regards, Isshi.

    If you use one of the industrial strength blogging sites that have been suggested here you might be able to add it to an iWeb page using an HTML snippet and iFrame code as in this demo page: Embed One Site Within an iWeb Page.
    OT

  • Anybody use Word Perfect?  How does 'Pages' compare?

    For anyone who wants to cut to the quick, just read the question....the last paragraph.
    I need some comfort. It's probably normal to get frustrated with a new Word Processing program like 'Pages' after only 2 days of using it so I'm willing to be patient, but I have a general question, which actually appears in the Title of this post.
    I've used Word Perfect on my non-Mac computers for 20 years and although the program is without equal in it's sophistication and ease of use (IMO), I do believe it caused some big problems for other programs on my computer (incompatibility problems with other software). I've wanted an iMac for a long time just to get rid of all the problem I had with those other computers, thinking I'd be rid of WordPerfect, which I blamed for many of the problems. I wanted a fresh, clean start, so I sure don't want to mess up my 2 day-old iMac by loading up a word-processor like WordPerfect again....that'll just mess everything up again.
    But I have mixed emotions. After my past experience with Word Perfect, it's just hard for me to believe that the WP people actually got rid of all their bugs, and wouldn't inadvertently stick them all into an Apple product. I'm paranoid, I know. I'm asking this question because word-processing is the most important thing to me in using a computer and I found WordPerfect to be perfect, as a word-processor, that is.
    I'm certainly willing to give 'Pages' a fair try, and hope it works out for me. But, is there anyone here who uses WordPerfect on their Mac (and with which OS) and does it cause you any problems? Also, in your opinion how does it compare with 'Pages'?

    I was an avid WP user (DOS, AtariST, and Mac versions) for years and I was a beta tester for the Atari and Mac versions. I was never all that impressed with the Windows versions. When the program was sold to Novel support and quality became uneven and after Novel sold it to Corel, well, let's let sleeping dogs lie, eh?
    Pages isn't WP - it is a consumer word processor and desktop publishing program. Still it is quite powerful and easy to use...once you accept its conventions. That is a sticking point for a lot of people. With OS X, Apple has taken the toolbar and adapted it to its own purpose. Unlike some programs that attempt to put every command in toolbars, Apple prefers to target a smaller number and allow the user some ability to custom it. Apple has also adopted the idea of palettes - one palette actually. The inspector. In OS X the inspector is used to take commands that might be buried in the menu hierarchy and puts them out front. With Pages, like many OS X programs, getting to know the Inspector is key to using Pages.
    As I said, Pages isn't WP or MS Word. That's good and bad. The good is that the program is cleaner and easier to learn. It also means that lots of features you might consider important are missing. You should have a demo version of iWork on your new iMac and you have 30 days to use it before you have to decide to keep it or ditch it.

  • How does iPhoto compare to Picassa which I have used a long time?

    How does iPhoto compare?  And is it simple to bring all to iPhoto in the same organization?
    Thanks!

    Very vague question... in what way? You obviously know the strngths of Picasa. The feature list of  iPhoto is on the Apple Site.
    Best advice I can give is to make a library and import 100 pics and explore. See what you like - or don't. It'll help you to ask pointed questions that will get you better quality answers (that this one )
    As to migration... there is no path from Picasa and it will depend on what Picasa can export.
    Regards
    TD

  • How does Mercalli compare with FCP X's Image Stabilizer?

    Last night we were shown some videos which had been stabilised using Mercalli.
    http://www.prodad.com/home/products/videostabilizing/300391667,l-us.xhtml
    The steadiness was excellent but as we were not shown the original footage there was no way of judging the improvement.
    Has anyone used this system and if so how does it compare with FCP X's stabiliser?

    aside Luis' excellent reply:
    * consider to upload your video to YouTube and set it there to 'hidden' or 'privat'. By eMail, share its URL. Many ISP have a max for eMail attachements, and video is huge by nature...
    * poor-man's-Compressor is the free tool Mpeg Streamclip.
    It offers in its various Options lots of settings, you usually would do in Compressor. Just share a Master from FCPX, open it in Streamclip and then 'export' it in any compressed form you like, e.g. reducing resolution, frame-rate, bit-rate. Less convenient than Compressor, which would allow to add your very own settings/'destinations' into FCPX... but cost-free.-

  • How does Muse compare to Apple's iWeb?

    I just heard about Muse.
    How does Muse compare to Apple's iWeb?
    Is it a similar type of user experience?
    Is it more or less versitile?

    I just migrated from iWeb to Muse.
    I've run my very small but well-established business in iWeb for almost 5 years and I was so sad to see Apple cut off iWeb. It worked super-well for my needs.
    I looked around and chose Muse because I could build what I wanted without being hemmed in by a template. In every other program I tried I either had to live life in a template or know how to code. I just wanted mine to be a simple straight-forward website that harmonized with my content. My followers don't need or want or like a lot of bells and whistles, they are interested in my content and in ease of navigating around.
    I moved my iWeb site from mobileme to another server about 3 months ago and then two days ago began moving into my new Muse site.
    In the last couple of days I have had about 600 or so of my followers find Muse and many have written to say they like my new site, that it loads fast for them and (as I suspected) they like that it is simple and easy to use.
    Mind you, I have a TON of work to do before my move is complete, but so far it is all I hoped it would be. I wish it had a couple of features more (such as a way to collapse and store pages when I'm not working on them) but I'm hoping they'll come in the future.
    Do I miss iWeb? Yes, because I knew how to run it so well and easily, but for my level of web participation Muse is a good replacement.
    Hope this helps.

  • How does Java file I/O move files?

    I'm working support for an integration platform, and there's a problem at a customer that seems to crop up once in a blue moon, yet still all to often. Its a bit difficult to track down, because they are using an old piece of software that is not officially supported anymore, but the problem still needs to be solved and I could use some help to either confirm or dismiss my suspicion of what might be the cause of it.
    What happens is this....
    Their system places a file in a folder, and the file is /supposedly/ fully created, and then just moved to the folder. Then an adapter program takes the file, puts it on a messaging queue, and after that is successful, it moves the file into a backup directory.
    Now, what has happened is that sometimes, the files that end up being sent are incomplete. Either the writing application messed up, or the adapter somehow went crazy. But more puzzling is that I've observed that the files have been correctly sent, but the file that ended up in the backup-directory was empty. It is not possible to send an empty file through the platform, since there's transformation logic that handles it. Those parts I completely trust, but I need to verify if it might indeed be the adapter, or the customer's own systems that messes up the message.
    So the question really boils down to, how does the java file-I/O method for moving a file work? Does it copy it bitwise, or does it call the system's move-command? Because if it copies it bitwise, it might mean it reads the data at the exact moment the file is created but not yet filled, and then doesn't check again as it writes it to the storage, and then just deletes the file. If it calls the system's move command, the system wouldn't be able to move a file that is being written, and something else is more likely the problem.
    The machine is a windows 2000 server, sp4, and the java being used is jdk1.3.1_03.
    Rewriting the adapter is not an option, and it will hopefully be replaced in the near future (as in, within a year...) whenever the customer deems it can budget for the work. The adapter is not officially supported by us, but the platform is, and I need to pin-point the problem.

    So the question really boils down to, how does the
    java file-I/O method for moving a file work? Does it
    copy it bitwise, or does it call the system's
    move-command? It could be either one. Both are available, so it depends what the programmer for that tool decided to use.
    Without more details, it's impossible to be sure what the probem is, but a couple of general possibilities that fit what you've described pop to mind:
    * The copy/move/send step is happening before the file being written is flushed or closed. This might be because an exception in the writing code is causing the flush/close to be skipped entirely.
    * The copy/move/send is being called too soon.
    * The step that's reading the file after its been copied/moved/sent is ocurring before the file is completely there.

  • What is the output of Maya and how does Java use it in animation.

    What type of software is used and what input and output files are created in the animation process?
    From what I read:
    Maya is used to create polygon structures, perform rigging, and it attaches surface textures which are made in Photoshop. Then Maya creates key images or positions of the animation. Next Maya exports an image and a data file to do the neccessary transformations. Finally, Java uses the image and the data file to paint the images and their position based on the game logic's use of the data file.
    What have I missed or described wrong?
    I also need more clarity on the input files to Java and how Java stores and uses these files. The use of Maya images and files seems different. Is Maya or Java doing the transformations or are they both doing them? How does this work?
    Thanks for your help
    Jon

    Thanks for the explanations. What this means in my situation is that tags are an unnecessary way of spending a lot of time making my file system more complicated, without adding any value whatsoever. Without tags, I can find any of my 3,000 files with a few clicks. (On my computer, Spotlight has cobwebs. I very rarely need it, but it's wonderful when I do.) Now that I know how tags work, I can ignore it.
    A human being can only perceive a quantity of seven without counting or grouping; hence we arrange things in structures to keep the number of entitites low on each level. You don't need to count three objects to know that they are all there, but you do need to count twelve objects. Which is why Home Alone was believable. We sort screws and nails in jars and toolboxes have compartments. Even the grocery store has a hierarchical arrangement. You don't find steaks in the bakery section, or breakfast cereal in the produce department.
    Some people aren't organized, and that's not a bad thing, but no folder, no tag, and no group is going to change a fundamental personality characteristic.
    Thanks everyone for showing me that in my case, there's no point to tags. That saves me a lot of time.

  • How does java basically work?

    I know that java makes use of many classes which have inherent methods that do our work. But I want to know how those methods work. where are the files for its running? Like in println, how does it output to the console?
    please explain.
    And also tell me how java was built...
    Thanks in advance.
    Megamatrix.

    If you want to see the source code of the standard API classes it's very easy - during the installation of the jdk you can choose to install it. In that case there will be a large file called src.jar in the JDK installation directory. You can extract the sources from it with eg. winzip or the "jar" command line tool.
    And if you are interested in the source of the JDK itself, it can be downloaded too... http://www.sun.com/software/java2/index.html

  • How does Java API handles binary files

    I couldn't find some documentation which describes how to extend the Java API for handling binary files. (I want to upload, check in/out (and delete) such files from within a Java application.) Does anybody know where I can find an example or some related documentation?
    TIA, Olaf

    The methods on ContentObjectDefinition
    allow you to create binary or ascii document content.

  • How does Java Compiler deal with circular dependence?

    A simple example is in the most basic class Object, you have a toString() method which uses String class, but, a String is an Object class first. So when the compiler encounters this circular dependence situation, how does it deal with it?
    Anyone has some ideas?

    I studied this a while ago... I think I know the answer, but you can still confirm it.
    Suppose you said javac Object.java, the first thing it would do is load the file into memory and layout its functions. Then it will search for dependencies. Finding String on in the classpath, it loads that up into memory too. It then searches for String's dependencies and so on...

  • How does JAVA catch Trigger's Exception?

    I have a JAVA program which call a SQL (insert a record into table A). On the other hand, I have a trigger written in Oracle DB, which inserts a record to table B after a record has been added to table A.
    Now, I find that when the trigger fails, both table A and table B doesn't have the new record. It seems to rollback the insertion into table A.
    I want to catch the exception in the JAVA, but no exception is returned to the JAVA code. However, when i simulate the insert statement in the Oracle DB, there is some exception returned.
    Do anyone know how to get the exception in JAVA?
    --- java code reference ---
    try
    xxx.executeUpdate("insert into xxx (....) values ('"...."');
    }catch(Exception e)
    e.printStackTrace();

    Further information of the scripts
    ------------------- Script in Oracle ----------
    create table a
    (a1 varchar2(10));
    create table b
    (b1 varchar2(10));
    create table c
    (c1 varchar2(10));
    create table d
    (d1 varchar2(10));
    insert into b values ('1');
    insert into b values ('2');
    insert into b values ('3');
    insert into b values ('4');
    insert into c values ('1');
    insert into c values ('2');
    insert into c values ('3');
    CREATE OR REPLACE TRIGGER abc
    AFTER INSERT ON a
    FOR EACH ROW
    DECLARE
         temp_b1 varchar2(10);
    BEGIN
         SELECT b.b1 INTO temp_b1
         FROM b, c
         WHERE b.b1 = c.c1
         and b.b1 = :New.a1;
         INSERT INTO d(d1) VALUES(temp_b1);
    END;
    ---------------- Run in SQLPLUS --------
    SQL> insert into a values ('4');
    insert into a values ('4')
    ERROR at line 1:
    ORA-01403: no data found
    ORA-06512: at "BCA.ABC", line 6
    ORA-04088: error during execution of trigger 'BCA.ABC'
    ---------------- Script in JAVA ----------
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import oracle.jdbc.OracleDriver;
    import oracle.jdbc.driver.OracleSQLException;
    public class langtest
         public static void main(String args[])
              throws Exception
              DriverManager.registerDriver(new OracleDriver());
              Connection connection = DriverManager.getConnection("jdbc:oracle:thin:[user_name]/[password]@[ip_address]:[port]:[service]");
              PreparedStatement pst = connection.prepareStatement("insert into a values ('4')");
              try {
                   pst.execute();
              } catch (OracleSQLException e)
                   System.out.println(e.getMessage());
                   System.out.println("done");
    ---------------- Run in JAVA Program -----
    There is no error message in JAVA. No exception prompt out. Do you know how I can get the exception in JAVA, just like the Oracle SQLPLUS encountered?
    Kelvin

Maybe you are looking for

  • Printing multiple copies of 3 page BOL in Duplex mode-

    Hi Gurus! I have created a smartform to print the BOL on front side and terms and conditions on back side. I used the duplex mode to print and it works perfectly fine. When I have a BOL with 3 pages of information , it prints the items on the front s

  • Commitment cost of Purchase requisitions for Project

    Dear All, My requirement is like , I don't want Purchase requisitions  cost to come under commitment cost for Project. Is it possible to do so.? If yes, then how. Regards, Vishal

  • Integration PS - SRM

    Hi Experts, I am designing a PS system in a landscape where SRM system is already deployed. We need to create our requests for purchasing from PS system into the SRM system, for them to follow the process defined and customized in the system, which w

  • Unable to install the latest version of Java

    I currently have java 1.0.6_65 installed. I downloaded version 7 of java and tried installing it. It said the installation was successful but when I went to Terminal and entered java -version it said version 1.0.6_65 was installed. In Mavericks when

  • Recordset not showing up on page

    I have the following code within my page, the first set of data works and displays the recordset fine.. i then have the same data displayed on the right column of the page, but doesnt display.. below the code is the source view of the page when i vie