C Language and Java language

Source: Internet
Author: User

C (64-bit, varies by machine)

JAVA (fixed)

Int

32

The runtime is stored on the stack, and if malloc is stored on the heap, you can change the storage area (register, global variable area) by using a representation word such as static before

Int

32

The run-time value can be stored on the stack

Data type

Short

16

Short

16

Long

64

Long

64

Float

32

Float

64

Double

64

Double

64

Boolean

Boolean type

Char

8

Char

16

Character type

Byte

8

Void

Void

Empty type

*

Pointer type

Struct

Class

The reference is stored on the stack, and the instance is stored on the heap

Combination type

Union

Enum

Array

Array

Container

Program language contains data types, data manipulation two parts, such as C and Java data types, such as the C language data manipulation is implemented by the function, and object-oriented Java by the method in the class to implement the operation of the data.

C Language and Java language

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.