Home > Java > Javagetting Started > What is initialization in Java

What is initialization in Java

爱喝马黛茶的安东尼
Release: 2019-11-12 10:05:16
Original
3702 people have browsed it

What is initialization in Java

Initialization is to give a variable an initial value.

For example:

Declare a variable: String aa = "abc"; int cc =0; where abc and 0 are the initialized values, and the final value is not necessarily abc or 0. Add your override The value of aa is as follows:

aa = "def" ; cc=1; Then the final value of the aa variable is def, and the cc variable is 1. The purpose of initialization is to make the variable have a value and prevent it from being used. Abnormal.

What is initialization in Java

php Chinese website, a large number of free Java introductory tutorials, welcome to learn online!

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

Related labels:
Statement of this Website
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
Latest Issues
Install JAVA
From 1970-01-01 08:00:00
0
0
0
Unable to install java
From 1970-01-01 08:00:00
0
0
0
Can java be used as the backend of the web?
From 1970-01-01 08:00:00
0
0
0
Is this in Java language?
From 1970-01-01 08:00:00
0
0
0
Help: JAVA encrypted data PHP decryption
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template