Re: sizeof in java! need help



On 19 Apr 2006 00:00:07 -0700, "Kulbir" <kb.singh1978@xxxxxxxxx>
wrote, quoted or indirectly quoted someone who said :

i have one doubt. java does not have sizeof(). so how can i know the
size of the objects in java.

since the primitive sizes are standard, and since you can't access
objects as a whole there is no need of a sizeof.

See http://mindprod.com/jgloss/primitive.html
--
Canadian Mind Products, Roedy Green.
http://mindprod.com Java custom programming, consulting and coaching.
.



Relevant Pages

  • Re: These are identical, right? char const* and const char*
    ... > embedded systems and many of the systems it runs on don't have things like ... Java was originally an embedded systems programming language, ... > aware that the omission of many things from the standard is inconvenient ...
    (comp.lang.cpp)
  • Re: Differences between C++ and Java
    ... > are *implementation* defined and the standard also specifies the ... > "In Java, garbage collection of unreferenced objects is automatic. ... > C++, you manually manage memory. ... > provide third party libraries that work just as well, ...
    (comp.lang.java.programmer)
  • Re: These are identical, right? char const* and const char*
    ... > and end to be a language that can run on a vast array of platforms. ... But there are many features in the standard library which /are/ directed ... > that you don't want to learn gains you the full power of the platform. ... work directly with the system API in Java as well. ...
    (comp.lang.cpp)
  • Re: Comparing Lisp conditions to Java Exceptions
    ... to be explicit on this and there was no money to do that project. ... there were things in the ANSI CL standard that defied ... I guess in all your advocacy of and/or comparison to Java I just missed ... >> Lisp vendors react to money, not rhetoric in the design of their product. ...
    (comp.lang.lisp)
  • Re: Was ist C# ?
    ... Da es keine allgemeine Definition von "Innovation" gibt, ... Oil of citronella, Java type ... Java ist und bleibt ein proprietärer Standard solange er nicht einem offenen ...
    (microsoft.public.de.german.entwickler.dotnet.csharp)