How many numeric data types in java




















Vertica Blogs. Send documentation feedback. To open the configured email client on this computer, open an email window. Otherwise, copy the information below to a web mail client, and send this email to vertica-docfeedback microfocus. Vertica Support. All Files. You are here:. In This Section.

Version 9. Each primitive type uses a fixed number of bits. This means that if you are using a particular data type then the same number of bits will be used no matter what value is represented. For example, all values represented using the short data type use 16 bits. The value zero as a short uses 16 bits and the value thirty thousand uses 16 bits. All values represented using the long data type use 64 bits. The value zero as a long uses 64 bits, the value thirty thousand uses 64 bits, and the value eight trillion uses 64 bits.

Arrays, classes, and interfaces are reference types. The value of a reference type variable, in contrast to that of a primitive type, is a reference to an address of the value or set of values represented by the variable see the following figure.

A reference is called a pointer, or a memory address in other languages. The Java programming language does not support the explicit use of addresses like other languages do. You use the variable's name instead. Copyright Sun Microsystems, Inc. All rights reserved.



0コメント

  • 1000 / 1000