What is Neutral Data? How it is related to java ?

Showing Answers 1 - 3 of 3 Answers

pavan

  • Jun 23rd, 2014
 

Example:- In c language
windows 16-bit

Code
  1.    void main()

  2.     {

  3.        int a;

  4.     printf(size of(x));

  5.     }

  6.   o/p:-  2 byte

  7.  

  8. windows 32-bit

  9.    void main()

  10.     {

  11.        int a;

  12.     printf(size of(x));

  13.     }

  14.  

  15. o/p:-  2 byte

  16.  



means the behavior of C program change when it moved from one OS to another OS,

But in case of java it is not changed. in java the size of data type is fixed,so java is Architecture neutral language. and java Data is a neutral Data.

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions