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.

Similar Messages

  • Why would you use JavaFX over JavaEE or JavaSE?

    Just curious why you would use FX over the others? Is it because of the GUI, and some added features, or what makes FX better?
    Also what exactly is the differences between the 3? It seems like SE is the basic, then EE is used for client-server and maybe security and such? FX seems to just have advanced GUI and stuff like that? Does anyone have a link or a list of what features are different and such?
    Thanks a lot!!!
    ~KZ
    Edited by: KonradZuse on Jul 6, 2012 8:41 AM

    KonradZuse wrote:
    I usually use swing, but I am starting a new business application for real world use, so I want it to be the best it can be. FX's Gui is great, but is it worth it to start using that right away? I also want to be able to use 3D, and as someone said you can do 2D in a 3D space, so that is basically what I need for now, but I would like to be able to do full 3D.JFX isn't exactly built to do 3D stuff right now. But neither is Java2D (the base for AWT and Swing), so nothing is different really.
    So what I really want to know is what is the differences between SE and EE?One is "Java", the other is a specification. For more information I refer to Google.

  • Why would you think java is a better beginner language then c/c++ ???.

    Why would you think java is a better beginner language then c/c++.That is if you think it is

    1.)because it stear's you towards useing oop style programing.
    since nearly everything relate's to object oriented programing.
    2.)this forum alone. is a reason thier are comprehensive example's for beginers. and so many people many very freindly and dont mind answering a question. Other beginners are here also who share what they know with each other.
    3.)learing curve for useing the language and geting started immediately is good.
    4.)once you learn java and then goto c++ you have another probably better perspective on how to code.
    5.)codeing in java avoids deconstructors pointers and direct manipulation of reference's. which can be very confuseing for beginers
    and deals with variables that directly point to the computer's memory.
    and proper deallocation of memory.
    though im just a begginer myself i started trying c++ and switched to java.
    however thier are somethings in java that can be as complex as c++
    when pointers or reference's are needed but not available.

  • Why would you use a managed service account rather than a virtual account in SQL Server 2012?

    In SQL Server 2012, service accounts are created as
    virtual accounts (VAs), as described
    here, as opposed to
    managed service accounts (MSAs).
    The important differences I can see for these, based on the descriptions:
    MSAs are domain accounts, VAs are local accounts
    MSAs use automagic password management handled by AD, VAs have no passwords
    in a Kerberos context, MSAs register SPNs automatically, VAs do not
    Are there any other differences? If Kerberos is not in use, why would a DBA ever prefer an MSA?
    UPDATE:
    Another user has noted a
    possible contradiction in the MS docs concerning VAs:
    The virtual account is auto-managed, and the virtual account can access the network
    in a domain environment.
    versus
    Virtual accounts cannot be authenticated to a remote location. All virtual accounts
    use the permission of machine account. Provision the machine account in the format
    <domain_name>\<computer_name>$.
    What is the "machine account"? How/when/why does it get "provisioned"? What is the difference between "accessing the network in a domain environment" and "authenticating to a remote location [in a domain environment]"?

    Hi,
    “Virtual accounts cannot be authenticated to a remote location. All virtual accounts use the permission of machine account. Provision the machine account in the format <domain_name>\<computer_name>$.”
    “The virtual account is auto-managed, and the virtual account can access the network in a domain environment. If the default value is used for the service accounts during SQL Server setup on Windows Server 2008 R2 or Windows 7, a virtual account
    using the instance name as the service name is used, in the format NT SERVICE\<SERVICENAME>”
    Per the above description, they are two concepts and not conflict with each other.
    As you understand, virtual account access network resources by using the credentials of the computer account. Generally, computer account will not be granted permission unless giving the computer account permission on the shared folder manually.
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Why would you use Group Discovery

    Does Group discovery just get members (systems or users) from groups? If so, I can just do that on the actual system discovery or user discovery, there is a check box to discovery members of a group. So my question is, what is the point?

    So the actual groups would be in the CM console? At that point I can create a collection of a group or groups and deploy to the machines in those groups? 
    The groups themselves would not be in the console but you would be able to deploy to members of a group by building a collection with query based memberships.
    Query would look like this:
    select SMS_R_SYSTEM.ResourceID,SMS_R_SYSTEM.ResourceType,SMS_R_SYSTEM.Name,
    SMS_R_SYSTEM.SMSUniqueIdentifier,SMS_R_SYSTEM.ResourceDomainORWorkgroup,SMS_R_SYSTEM.Client
    from SMS_R_System where SMS_R_System.SystemGroupName = “DomainName\\GroupName”
    Collection will contain all systems member of the group.

  • 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 you use email to contact me but refuse to accept my email

    Hi
    I understand that email can be a very convenient and effective way of communication; however The FCC has strict regulations on how wireless carriers can ask and receive customer information.
    If you need assistance with an account or billing issue and you’re overseas you can always chat live or call our international support number free from your AT&T mobile at +1.916.843.4685.
    Thanks,
    Charise

    Why do I have to use Facebook, tweeter or this goofy community service instead of email? Why do you use my email address to contact me but refuse to accept email In return? Just like you, I also prefer the ease and convenience of email. Would you prefer I setup my own social network and require you to post your bills to it??! Email is ubiquitous and--unlike your service--it works perfectly overseas.

  • Why would you add Paths to a jpeg?

    Hi Everyone!
    I've been using Ps on and of for a few years now as a hobby so I'm somewhat able to find my way around it.
    Now for the actual question:
    Why would you add Paths to a jpeg?
    Moreover why split it into several paths? I have a vague memory of paths beeing able to render for example a background transparent in say illustrator. Can that be it?
    My reason for asking is that I work as a Digitalprinter operator and we have got a client that wants us to mask out objects in pictures and also in som cases separate them into paths.
    I've scaled down the example we got from the client and added a link to it below hopfully someone can open this in Ps and explain why you would do this.
    Dropbox - Paths
    Thank you for your time.

    Probably shouldn't reply using my cellphone while working, I'm doomed to get it out wrong.
    What I ment is that I can't see for example how Path 3 as shown below in white (using quick mask) would be useful in a page layout program. Because the text that you create in that program would flow around "everywhere". Or am I wrong in believing this?

  • Why would you NOT enable Loop Guard on switch ports?

    Hello
    Why would you NOT enable Loop Guard on switch ports?
    It is disabled by default on all ports.
    Since it prevents loops, in the absence of receiving BPDUs on non-designated ports, why would it not be enabled by default?

    Ziffy wrote:
    The Galaxy S4 supports Google Wallet, but yet you block it from being used. Why exactly? This is not right. I suggest you enable it before you start losing customers. Is there anybody out there that would like to start a petition? Perhaps look into whether or not this is actually legal? Seems like unfair practices to me. Thoughts?
    Good luck with that.  FCC already did and have left it alone...  My theory is because... Google charges carriers to use allow devices to use it.  At one point Sprint paid to go exclusive for wallet.  FCC can't force you to buy your competitors product.

  • Why would you disable one processor?

    just curious about the system preferences pane that lets you specify whether to use one processor core or two. why would you set it to one? what practicle application could there be to disable a processor core?

    Developers may need to disable a processor as part of software development. Disabling a processor on a laptop will extend battery life when processing speed isn't critical. May be necessary to determine if one of the processors is defective.
    Why reward points?(Quoted from Discussions Terms of Use.)
    The reward system helps to increase community participation. When a community member gives you (or another member) a reward for providing helpful advice or a solution to their question, your accumulated points will increase your status level within the community.
    Members may reward you with 5 points if they deem that your reply is helpful and 10 points if you post a solution to their issue. Likewise, when you mark a reply as Helpful or Solved in your own created topic, you will be awarding the respondent with the same point values.

  • What command would you use to check for allocation, structural, or logical integrity problems?

    What command would you use to check for allocation, structural, or logical integrity problems?

    Wondering if you are looking for DBCC CHECKDB command? For more information, on that command, try to look at this:
    http://technet.microsoft.com/en-us/library/ms176064.aspx

  • You want to know the amount of space the transaction log for the Customer database is using. Which T-SQL command would you use?

    You want to know the amount of space the transaction log for the Customer database is using. Which T-SQL command would you use?

    Forced me to do a little research.
    DBCC SQLPERF(logspace)
    See also
    http://stackoverflow.com/questions/198343/how-can-i-get-the-size-of-the-transaction-log-in-sql-2005-programmatically
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • What sequence setting would you use to edit 1280 x1080 DVCProHD (P2) and 1920 x 1080 AVCHD (Sony) in FCP. Experiencing Quality and rendering issues.

    What sequence setting would you use to edit both 1280 x1080 DVCProHD (P2) and 1920 x 1080 AVCHD (Sony) in a single timeline in FCP. I'm experiencing quality and rendering issues.  I've tried numerous settings but can't seem to figure this one out.  Thanks for your assistance.

    Although you can combine the avchd 1920x1080 material with prores 1920x1080 in the same timeline, you might land up saving time just converting everything to 1920x1080 prores 422.   You'd probably reduce the amount of rendering while you're working and exporting when you're done by a great deal.  This workflow will require much more drive space.

  • Which interface would you use to list each element of a vector?

    Which interface would you use to list each element of a vector?

    The laugh's on you, twit! Nobody takes kindly to lazy bums trying to cheat on their homework nor exams. Take a hike loser!

  • Why can't I select just one album under artist view and listen to it from beginning to end anymore? Why would you change that?

    Why can't I go under artist view in music app, select 1 of multiple albums by a specific artist and play the whole album from beginning to end? Why would you have it automatically shuffle between songs from several albums by the same artist automatically? How do we change this back to previous function because this is sucking big time for a music lover.

    I agree this is a really dumb change and I really hope Apple changes it back to the way it was.
    In iOS 6 and earlier when you were in the Music player and selected ARTIST it would show a list sorted by artist. When you selected the artist you wanted, it would show a list of their albums.  Then you could select the album and see the list of songs.  In iOS 7 after you select Artist, it displays the album and every track, so you have to scroll down through not only the album but every track on that album.   That was a really stupid change on Apple's part.  Makes no sense.
    Here is the list of albums under iOS 6.x...
    and here is what is looks like under iOS 7.0
    In iOS 7.0 you have to scroll down through all the songs to see the other albums.  That can be a really pain if you have a large music collection.
    Please Apple change it back to the way it was!!  This didn't need to change!

Maybe you are looking for

  • Why can I not delete a book from my iTunes library

    Why can I not delete a book from my iTunes library. There are many books that I want to delete and replace with current books, but cannot remove the old books.  Thanks  Guy

  • Change of ID/Username?

    Is it possible to allow change of ID/Username? At present my username is *@hotmail.com.  I wish to use *@gmail.com .  If I enter the change will it affect the use of my Playbook? My reason is that if BB10 allows use of Android apps then I hope will n

  • OVM Linux service hangs the system reboot

    System: Oracle VM Manager Version: 3.1.1.305 Hello everybody, I have the script to start the node manager on system reboot on run level 2. After rebooting my VM I can't log on with putty anymore. So I opened the console with my RealVNC from OVM Manag

  • Despite the solution given in the forum, I can't get .jpg listed in the filetype listing for how to deal with various filetypes.

    Whenever I click on a .jpg link, the picture opens in Firefox. I want to use a different program, but I can't change it because .jpg does not appear in the list of filetypes for which you can specify actions. I realize there is an answer in the Firef

  • EDIFACT has a space missing

    Hi all.. If in my XI mapping output, I have a empty node then in the BIC mapping output i want a <SPACE> to come. For example if XI mapping is like this: <A1>200</A1> <A2/> Then i want the BIC output to be like 200: ' where ' is the segment delimeter