Why do u use JAVA ? :-)

Hello All,
Please tell me your reasons of using Java if you know in advance that your application will run under specific OS.
Thanks

Oh yeah, and it's a great language to teach folks object-oriented techniques. It helps get them in the mindset of things being objects that communicate through methods. That is, of course, unless you want to add two Integer instances together... :)
Dan
Being a Smalltalk developer, it's a much nicer
language than C++ because it "uses" some of the same
benefits that Smalltalk has had for 20+ years. It's
pretty close to being object-oriented (still arguably
object-based due to base types that aren't real
objects) and there's a wide support base for
developing under it. And, to echo a sentiment from
another poster, there's a slew of free
tools/frameworks that can be used to do some pretty
slick stuff.
Granted, I'll be a heck of a lot happier when/if they
eliminate base types and go with all objects or at
least beef-up the Number hierarchy to do math in an
object-oriented manner (I can rant on that for days).
Dan

Similar Messages

  • Why should I use Java

    HI,
    Someone asked me why are you using Java when you can use Visual Basic.
    Well, I ask this question in this forum ?? why ...
    please leave out the portablity part
    --j                                                                                                                                                                                                                                                                                                                                                   

    Well, here is my 2 cents, as it were. I tried learning VB, and found that while it is powerful, when it comes to designing specifically for Windows systems, I found it extremely hard to understand. When I first learned Java, it didn't take me long to understand the concept and relation of classes and objects, and I was writing Swing apps in no time. With VB, it wasn't that easy. Yes, it was mostly drag and drop and add a few lines of code, but I don't like that. I like to be able to get down into the code and see why it works the way it did, and with VB, I just couldn't grasp it. But with Java, it took me no time at all to be able to understand why it worked the way it did, and because of that, I will always choose Java over any other language, except maybe Miva Script, which is a server side language used for e-commerce websites. It was another language that was easy to learn. Does this mean I'm a lazy programmer, always taking the easy way out? Probably, but if it's easy for me to learn, it's easy for me to implement.
    James

  • Why do we use java.io.serializable

    i was studing javabeans. i found out we implements java.io.serializable.
    can anyone explain why do we use it?
    S

    Being serializable, it is then able to have a form of permanence... ie. it can be saved to disk. Then when your app/applet/service etc restarts, it can load the saved data to be used again.

  • Why should i use Java in Web form

    I am making a web calculator. Its takes some inputs from the user and evaluates input to calculate the result. I dont want the user to see the interpretation of their result.
    I am new to java. Can anybody tell me if i can do that with ASP?

    if you want to use java use JSP not ASP.. JSP is as powerful or more powerful than ASP

  • Why would you use Java over C/C++

    This thread :
    http://forum.java.sun.com/thread.jspa?threadID=689490
    Brought back to mind a problem I had in the first C program I worked on -
    I'd declared an array and a file pointer on the stack in a function, overwrote the end of the array by mistake, and trashed the file pointer. The file pointer was used a while after the array was overwritten - took me 2 days to work out what was happening. Array overwrites like this are just not possible in Java - that's a reason to use Java over C or C++.
    Anyone else got their own scare stories like this ? Maybe someone's got a Java scare story that would make you use C ?

    A C++ based bond trading system had the description database varchar field width of 60 characters. The GUI software to display this had buffers 60 characters wide. New bonds came along with widths of over 60 characters so the database field width was changed to 80 characters but nobody told us (the GUI maintenance team) about the change.
    There was no real problem for about 4 days after the first long named bond was inserted. Then, at random times, the GUI application would crash. It took many many days to find the source of the problem and to fix it. The blame was laid at the door of the GUI maintenance team even though we had not written the code and we had logged the potential problem in the bug database months before but management decided that it was not a problem so should not be 'fixed'.
    This literally cost millions because the traders could not be sure of their positions.
    I left as soon as my contract ran out.

  • Why use Java Beans?

    Why should we use java beans?
    Everybody says it is used to set the properties. What does this mean?
    Can anyone give me a realtime scenario of the problems it can solve?
    How does Spring framework utilize beans to solve problems? i.e wiring beans, declaring them in context file.

    shalearns wrote:
    Why should we use java beans?[http://java.sun.com/docs/books/tutorial/javabeans/index.html]
    Everybody says it is used to set the properties. What does this mean?[http://java.sun.com/docs/books/tutorial/javabeans/whatis/index.html]
    Can anyone give me a realtime scenario of the problems it can solve?[http://java.sun.com/docs/books/tutorial/javabeans/nb/index.html]
    How does Spring framework utilize beans to solve problems? i.e wiring beans, declaring them in context file.[http://static.springframework.org/spring/docs/1.2.x/reference/beans.html]
    ~

  • Why is it such a pain to use java in a country that uses commas as decimal?

    Why is it such a pain to use java in a country that uses commas as decimal separator?
    A few weeks back I've asked here about the keypad decimal key. For some reason, java doesn't map the decimal key to a comma on the Portuguese (Portugal) keyboard layout. I've got no answer and I ended up using a custom plainDocument on the JTextFields to replace all points with commas.
    Now, I've just spent the whole morning trying to store and use decimal numbers properly. For some reason, a Double/Float .valueOf method (or the corresponding parse method) simply ignores the locale in use and uses US defaults when parsing the string. I can't parse anything with commas in those methods and I should, as it is the decimal separator for the system and default locale being used by java.
    First of all, I shouldn't be expected to perform replacements on every single operation that comes with a comma and I obviously can't be expected to program my own locale checking to decide what decimal separator to use in each final system. Second, is there any way to work with numbers seamlessly, without having to know the locale of the end user?
    I'm sorry if this is all my fault for doing something completly wrong, I'm new to java and I did search around to no avail. I'm really frustrated with what seems to be a complete lack of support in java for locales other than the US one.

    Good old Cobol has the "DECIMAL-POINT IS COMMA" clause... And isn't it great? :)
    Second, is there any way to work with numbers seamlessly, without having to know the locale of the end user?Consider "123.456". In some locales, this number is one hundred twenty-three thousand, four hundred fifty-six. In other locales it is one hundred twenty-three and four hundred fifty-size thousandths. How will you be able to determine which, without a locale?That's not what I've meant. Java should know the locale and behave accordingly. I don't have to know the locale of the end user since it might vary greatly. My point is that if strings are flying around with commas and if comma is the decimal separator on the end user's machine, any method aimed at parsing a numeric value out of a string should regard commas as such. I'm constantly replacing dots with commas and vice versa which could cause trouble if a different locale is used.
    And I mean that as a rant. Given my inexperience with Java, there might be good reasons for such a behaviour as baftos argued. What I'm really interested is in finding the proper way to deal with this issue.
    Have you tried the NumberFormat.parse? I will now.
    Edited by: Smigh on Apr 9, 2008 9:21 AM

  • If RuneScape uses Java 3D why don't you need to install it?

    I was just wondering if RuneScape uses Java 3D, why doesn't anyone need to install it? Is it because the game is intirely server side and all the graphics and stuff is done over on their servers and not on your own computer? Thanks.

    Most likely, you have a web plugin that depends on the Java runtime distributed by Apple, such as the Facebook video calling plugin or the "NexDef" plugin for watching baseball streams. If you no longer need the plugin, remove it, including its automatic update mechanism (if any) according to the developer's instructions. Otherwise, install Java.

  • Why static is used before any function in java

    Sir/Madem
    I'm new in java. I have just started learning java.
    please tell me
    "why static is used before any function in java??????"
    I have searched on net and in soime bokks .But i was unable toget it. what is exact reson of using static in java.

    tandm-malviya wrote:
    Sir/Madem
    I'm new in java. I have just started learning java.
    please tell me
    "why static is used before any function in java??????"
    I have searched on net and in soime bokks .But i was unable toget it. what is exact reson of using static in java.It's actually seldom used in "real" applications. static associates the method with the class instead of an instance.
    Kaj

  • Why does my web browser constantly blink when in a site that uses java?

    Hi
    when visiting a site that uses java my web browser blinks when ever there is an update to the information on the screen. Is there something i should change in my java preferences?
    thanks

    For safety disable Jave in all your Browsers...
    Disable Java in your Browser settings, not JavaScript.
    http://support.apple.com/kb/HT5241?viewlocale=en_US
    http://support.google.com/chrome/bin/answer.py?hl=en-GB&answer=142064
    http://support.mozilla.org/en-US/kb/How%20to%20turn%20off%20Java%20applets
    Little Snitch, stops/alerts outgoing stuff...
    http://www.obdev.at/products/littlesnitch/index.html
    Flashback - Detect and remove the uprising Mac OS X Trojan...
    http://www.mac-and-i.net/2012/04/flashback-detect-and-remove-uprising.html
    In order to avoid detection, the installer will first look for the presence of some antivirus tools and other utilities that might be present on a power user's system, which according to F-Secure include the following:
    /Library/Little Snitch
    /Developer/Applications/Xcode.app/Contents/MacOS/Xcode
    /Applications/VirusBarrier X6.app
    /Applications/iAntiVirus/iAntiVirus.app
    /Applications/avast!.app
    /Applications/ClamXav.app
    /Applications/HTTPScoop.app
    /Applications/Packet Peeper.app
    If these tools are found, then the malware deletes itself in an attempt to prevent detection by those who have the means and capability to do so. Many malware programs use this behavior, as was seen in others such as the Tsunami malware bot.
    MadMacs0 says...
    This script from F-Secure is the only one I'm currently recommending http://www.f-secure.com/weblog/archives/00002346.html
    http://reviews.cnet.com/8301-13727_7-57410096-263/how-to-remove-the-flashback-ma lware-from-os-x/
    http://x704.net/bbs/viewtopic.php?f=8&t=5844&p=70660#p70660
    Open DNS also blocks the FlashBack thing...
    http://blog.opendns.com/2012/04/09/worried-about-mac-malware-just-set-up-opendns /

  • What is java proxy, why its is used and where can i get more info abt this?

    Hi all!
    My current scenario is File->XI->j2ee appl.
    <b>Can XI sends file to my J2EE application using java server proxy.</b> If so how to develop that?
    what are the requisites that my SAP system should have?
    I have jdk1.5,Tomact5.0,eclipse3.1.2, NWDS2.0.9
    Where can i get full step by step procedure to develop that. Please help me
    Thanks

    Hi
    Go through these link:
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/97/7d5e3c754e476ee10000000a11405a/frameset.htm">Java Proxy</a>
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/5b/12b7e6a466456aa71ef852af033b34/frameset.htm">Configuring the Channel for Java Proxy Receivers</a>
    <a href="http://help.sap.com/saphelp_erp2005/helpdata/en/c5/7d5e3c754e476ee10000000a11405a/frameset.htm">Java Proxy Objects</a>
    Hope this will help.
    Rgards
    DhanyaR Nair

  • Why OS X lion cannot use Java?

    why OS X lion Java got new update?

    This article may shed some light on it:
    http://jaxenter.com/apple-to-remove-java-from-mac-os-x-32293.html
    A Java update is available, and should appear when you first run a Java applet on Lion.

  • Why use Java

    Hello
    I want some clarifications in regards to Java
    Now I create a Program lets say a simple calculator
    which will be used in Windows program.. then
    of course I also want to distribute this program
    to fellow friends.Now if creating an exe file
    in Java is not possible (or may have to use some 3rd party programs)
    then What do Java programmers use Java for??
    I very much understand the use of an Applet
    but if I can not create a stand alone program
    and Deploy it then can any one give me a few example
    as how other people are using Java program for??
    thanks for your time

    I've used InstallAnywhere Now! to deploy basic apps to friends before. You can find it here:
    http://www.zerog.com/downloads_05.html
    It takes care of making your program executable on most operating systems. If you get any jvm errors when running the installer it creates for you then try packaging your program with a specific JVM. The size of your setup file will be a quite a bit larger, but if you're putting it on cd it shouldn't matter. I had a similar problem with InstallSheild when I tried it (maybe it was just me). Anyway, I decided to use this one because it was free and the program I used it for was written for a friend (that I didn't charge :-)
    Ryan

  • I cannot use JAVA with Firefox but I can use it with Internet Explorer WHY?

    I have never had a problem when JAVA 7 was needed to use a program. Until now. Firefox will not allow me to use Java. I have to open Internet Explorer when working with any program and it works.

    To protect Firefox users, Mozilla has blocked/disabled Java 7 u6 and below due to serious security flaws in the previous versions of Java 7. The security flaw would also apply to any other browser using the affected versions of Java 7. You can see the version of Java and whether it is disabled in Add-ons > Plugins; look for "Java Platform SE...". See - https://addons.mozilla.org/en-US/firefox/blocked/p138
    You can check your '''''enabled''''' Plugins at any time - https://www.mozilla.org/en-US/plugincheck/
    Information about Java, testing and updating it - https://support.mozilla.org/en-US/kb/use-java-plugin-to-view-interactive-content

  • ORA-04030: out of process memory when using Java Stored Procedures

    Hello,
    I have a problem using Java Stored Procedures in Oracle 10g.
    My Java application performs http posts to a webservice and the response is parsed in order to populate some DB tables.
    There is a scheduled job which calls the Java Stored Procedure every x minutes.
    No matter of the 'x minutes' values - after about 160 - 200 calls I get this error:
    ORA-04030: out of process memory when trying to allocate 1048620 bytes (joxp heap,f:OldSpace)
    ORA-04030: out of process memory when trying to allocate 2097196 bytes (joxp heap,f:OldSpace)
    The job stops just while is posting the http request. The weird thing is that almost each time the first http post request I get this error:
    java.net.ConnectException: Connection refused
         at java.net.PlainSocketImpl.socketConnect(Native Method)
         at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
         at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
         at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
         at java.net.Socket.connect(Socket.java:426)
         at com.sun.net.ssl.internal.ssl.SSLSocketImpl.connect(DashoA6275)
         at sun.reflect.GeneratedMethodAccessor2.invoke(Unknown Source)
         at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
         at java.lang.reflect.Method.invoke(Method.java:324)
         at org.apache.commons.httpclient.protocol.ReflectionSocketFactory.createSocket(ReflectionSocketFactory.java:140)
         at org.apache.commons.httpclient.protocol.SSLProtocolSocketFactory.createSocket(SSLProtocolSocketFactory.java:130)
         at org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
         at org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
         at org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
         at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
         at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
    and the second try works fine.
    So, The out of process memory occured each time just before getting such an error, and I suspect to be a connection between these errors.
    Tech details:
    1. OS: WinXP
    2. Oracle 10.1.0.2.0
    3. To perform http post I use HttpClient 3.1 from Apache.
    4. I checked the http connection to be closed each time, and this is done.
    5. I checked the oracle statement and connection to be closed each time and this is done
    6. The JVM error (logged in .trc files of Oracle) is:
    java.lang.OutOfMemoryError
         at java.lang.Thread.start(Native Method)
         at sun.security.provider.SeedGenerator$ThreadedSeedGenerator.run(SeedGenerator.java:297)
    DB Settings details:
    Starting up ORACLE RDBMS Version: 10.1.0.2.0.
    System parameters with non-default values:
    processes = 200
    sessions = 225
    shared_pool_size = 159383552
    large_pool_size = 8388608
    java_pool_size = 104857600
    nls_language = AMERICAN
    control_files = C:\ORACLE\PRODUCT\10.1.0\ORADATA\XXXXXX\CONTROL01.CTL, C:\ORACLE\PRODUCT\10.1.0\ORADATA\XXXXXX\CONTROL02.CTL, C:\ORACLE\PRODUCT\10.1.0\ORADATA\XXXXXX\CONTROL03.CTL
    db_block_size = 8192
    db_cache_size = 29360128
    compatible = 10.1.0
    fal_client = XXXXXX
    fal_server = XXXXXXs
    log_buffer = 524288
    log_checkpoint_interval = 100000
    db_files = 70
    db_file_multiblock_read_count= 32
    db_recovery_file_dest = C:\oracle\product\10.1.0\flash_recovery_area
    db_recovery_file_dest_size= 2147483648
    standby_file_management = AUTO
    undo_management = AUTO
    undo_tablespace = undotbs_01
    undo_retention = 14400
    remote_login_passwordfile= EXCLUSIVE
    db_domain =
    dispatchers = (PROTOCOL=TCP) (SERVICE=XXXXXXXDB)
    remote_dependencies_mode = SIGNATURE
    job_queue_processes = 4
    parallel_max_servers = 5
    background_dump_dest = C:\ORACLE\PRODUCT\10.1.0\ADMIN\XXXXXX\BDUMP
    user_dump_dest = C:\ORACLE\PRODUCT\10.1.0\ADMIN\XXXXXX\UDUMP
    max_dump_file_size = 10240
    core_dump_dest = C:\ORACLE\PRODUCT\10.1.0\ADMIN\XXXXXX\CDUMP
    sort_area_size = 1048576
    sort_area_retained_size = 1048576
    db_name = XXXXXX
    open_cursors = 500
    optimizer_mode = FIRST_ROWS
    pga_aggregate_target = 25165824
    Any help would be appreciated. Thanks.
    Can be a problem with JVM threading under Oracle ?

    The server prcess failed to allocate more memory for large objects ( in Oldspace).
    If you Google ORA-04030, you will see several recommendations to work around this.
    The Java VM in the database already has HttpClient, i don't know why you are loading the Apache HttpClient but this might not be the surce of the problem.
    Kuassi http://db360.blogspot.com

Maybe you are looking for