Basic concepts of 1.Java data types:The data type in computer language is an abstract expression of memory location, which can be understood as an abstract expression for memory. With each language, there will be data types of understanding, there
Java (data type conversion)I. Data Type Conversion
It can be divided into "automatic type conversion" and "forced type conversion"Ii. Automatic type conversion
Low level ------ high level
byte b=7; int i=b; System.out.println("
First, the data type5 Basic data types: Null/undefined/string/boolean/number1 Complex data types: ObjectSecond, data type detection1, typeof2, Instanceof/constructor3, Object.prototype.toString.call (value)4, Object.prototype.toStringIii. Conversion
Java's core strengths: cross-platformJdk:java Development Kit Jre:java Runtime Environment Jvm:java virtual machine JDK contains JRE,JRE contains JVMJAVA_HOME:JDK installation directory path: When executing a DOS command, the system will look for
Java data types fall into three main categories, namely, Boolean , character , and numeric . The numerical type is divided into integral type and floating point type. The basic data types of Java (8 types) are Boolean Boolean (1 bytes), character
About variables and the scope of variables in Java
About the variables in Java and the scope of the variables 0. The concept of variablesDuring a program run, the system can allocate a block of memory for the program to store various
PHP type conversion, constants, system constants, magic constants, constants
PHP type conversion, constants, system constants, and magic Constants
1. Automatic type conversion;
During operation and judgment, automatic type conversion is performed; 1)
650) this.width=650; "src=" https://s4.51cto.com/wyfs02/M02/97/0F/wKioL1koP2PzKUvPAACdZhrxcN8720.png "title=" QQ picture 20170526224319.png "alt=" wkiol1kop2pzkuvpaacdzhrxcn8720.png "/>First Class: Logical Type BooleanBoolean type data allows only
VariableThe concept of variablesA storage area in memoryThe zone has its own name (variable name) and type (data type)Each variable in Java must be declared first and then usedData in this region can vary from one type to the same rangeDefine the
Grammar:A. Automatic type conversion: Under certain conditions, the system auto-complete type conversion is also called the implicit conversion (implicit casting)A. Two types of compatibilityB. Destination type is greater than source typeC. For an
data types in JavaI. BASIC data Types1. Basic data typesThat is, int,char,float,double,byte, Short , Long , Boolean There are 8 types of such numeric values .
Data type
Number of digits
Range of values
Description
Chapter II NotesWhat is a variable:A variable represents a memory area, and the variable type is different, and the size of this piece of memory is different.#在编程语言里面, you can define variables, add data to memory, or modify existing data in memory.
first, the basic Operation1. Arithmetic OperatorsA. + addition operatorB.-Subtraction operatorC. * Multiplication operatorD./division operator //Divide two integers, the result is an integer. E.% take-out operator (modulo operation) //NOTE: 1. %
Name of the variable:(1) The first letter is an English letter, a $ or an underscore, consisting of letters, numbers, and underscores.(2) The name of the variable follows the principle of the known meaning.(3) Java variable names are not recommended
This article is divided into three parts:1. Introduction to basic data types2. Type conversion3. Packing and Unpacking--------------------------------------I'm a friendly divider--------------------------------------Java has 8 basic data types,
The following are the most basic data type comparisons.650) this.width=650; "src=" Http://www.grabsun.com/uploads/images/201206-2/144721_08_738.GIF "alt=" 144721_08_738. GIF "/>Explain the points:1. It can also be divided into two main categories:
Welcome to visit the blog Basic Exercise Output
public class MyApp {public
static void Main (string[] args) {
System.out.println ("I can learn the Java language well.") ");
}
}
Integer type
public class Test {public
static void
Java All-round learning
Java 2 omni-directional learning J2ME Wireless Java application Development Java Mobile Phone Program design Introduction and Application1, for the general PC platform, the Java program is divided into two categories, one is
mutable keywordKeyword mutable is an infrequently used keyword in C + +, and he can only be used for non-static and very data members of a class
We know that the state of an object is determined by the Non-static data members of that object, so as
Java 2 omni-directional learning J2ME Wireless Java application development Java Mobile Programming Introduction and Application 1, for the general PC platform, Java program is divided into two categories, one is on the PC operating system
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.