Prev: Valuation of Stocks
Next: Database development
From: Roedy Green on 25 Apr 2010 12:51 On Sat, 24 Apr 2010 10:26:56 -0700 (PDT), Jack <junw2000(a)gmail.com> wrote, quoted or indirectly quoted someone who said : >Java avoids the memory access violation suffered by C/C++. But it >still has the null pointer issue. Certainly, this makes Java code >safer than C/C++ code. But you can control memory directly with C/C++. >Is there any other advantages of Java on this perspective? It is impossible to write code that runs differently every time because you forgot to initialise something. Java either initialises for you or insists you do it. In Java it is impossible to free an object yet retain pointers to it. In Java it is impossible to leap into the middle of random code/data and start executing doing all manner of weird things. In Java it is impossible to have a pointer point to something other than what it purports to. -- Roedy Green Canadian Mind Products http://mindprod.com It�s amazing how much structure natural languages have when you consider who speaks them and how they evolved. |