Ads Sponsored By Google :)

Monday 28 January 2013

why|what there in no sizeof like operator|method is|removed in|from java with example


sizeof in java sizeof operator in java why no sizeof in java why there in no sizeof operator in java
what is sizeof in java sizeof operator in java example is there any sizeof like method in java why sizeof method is removed from java

  Why sizeof() function is removed from java ?

    In case of C and C++, the memory of primitive types will be changed according to operating system, because both C and C++ are platform dependent languages.
   In case of java, the memory of all primitive types are constant, because java is  a platform independent language.
 In java, there is no use of sizeof() so it is removed from java.


    length variable Vs length()
    How can we find length of a string without using length()



No comments:

Post a Comment

LinkWithin