search
HomeJavaJavaBaseWhat are the data types in java

What are the data types in java

Nov 16, 2019 pm 01:34 PM
javatype of data

What are the data types in java

Data type:

What are the data types in java

##Notes:

1: In the Java development process, int is used for integers, double is used for decimals, and boolean is used for booleans;

2: Type conversion is all about conversion from a small range to a large range. Conversion from a large range to a small range requires the use of forced conversion. ;

For example: (1)int a=12;double b=a;(2)double a=3.0;int b=(int)a;

3:long,byte, Char, etc. are rarely used and are generally used in data processing;

4: The conversion between int and char is through ASCII conversion;

For example: char a =' A';int b=a;System.out.prientln(b);The final output result is 65;

5: String type, String is the essential and most used data type in the project, it Belongs to the category of "class" in reference data types.

Encapsulation class of basic data types

What are the data types in java## Recommended tutorial:

Java tutorial

The above is the detailed content of What are the data types in java. For more information, please follow other related articles on the PHP Chinese website!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Tools

PhpStorm Mac version

PhpStorm Mac version

The latest (2018.2.1) professional PHP integrated development tool

SublimeText3 Mac version

SublimeText3 Mac version

God-level code editing software (SublimeText3)

SAP NetWeaver Server Adapter for Eclipse

SAP NetWeaver Server Adapter for Eclipse

Integrate Eclipse with SAP NetWeaver application server.

EditPlus Chinese cracked version

EditPlus Chinese cracked version

Small size, syntax highlighting, does not support code prompt function

DVWA

DVWA

Damn Vulnerable Web App (DVWA) is a PHP/MySQL web application that is very vulnerable. Its main goals are to be an aid for security professionals to test their skills and tools in a legal environment, to help web developers better understand the process of securing web applications, and to help teachers/students teach/learn in a classroom environment Web application security. The goal of DVWA is to practice some of the most common web vulnerabilities through a simple and straightforward interface, with varying degrees of difficulty. Please note that this software