Why java has fixed data type size unlike C -


In

C , as we know the size of the data type (eg compiler / hardware.

But why is the type of data type continuously in Java's language? Why is there no flexibility in different types of data type in Java based on the compiler?

< Div class = "post-text" itemprop = "text">

JVM (Java Virtual Machine) is designed to be platform independent if the data type size is in the platform Cross-platform stability is sacrificed.

JVM separates the program from the built-in OS and platform. It can make life difficult for system-specific work, but profit It is that you can write-run once, anywhere (this is true to a great extent, with some unfortunate issues. Write-once, trial-everywhere is a more practical approach).


Comments

Popular posts from this blog

c# - How to capture HTTP packet with SharpPcap -

jquery - SimpleModal Confirm fails to submit form -

php - Multiple Select with Explode: only returns the word "Array" -