当前位置:网站首页>[day01] preface, introductory program, constant variables
[day01] preface, introductory program, constant variables
2022-07-19 07:53:00 【Люй ли】
13. Program notes and HelloWorld explain 


14. The concept and characteristics of keywords 
15. The concept and rules of identifier

16. The concept and classification of constants 
17. Printout of constants 
For character constants : There must be only one character between two single quotation marks , No, no, No ; Not even two
For empty constants : Null constants cannot be used directly for printouts
18. Basic data type
There are two types of data :
1. Basic data type
2. Reference data type : character string 、 Array 、 class 、 Interface 、Lambda

A string is a reference type , Not a basic data type .
19. The concept and definition format of variables 
20. Basic use of variables 
You cannot create variables with the same name repeatedly 
Variables without assignment cannot be used 
21. Variable considerations 

When using variables , There are a few caveats :
1. If you create multiple variables , Then the names between variables cannot be repeated
2. about float and long In terms of type , Letter suffixes F and L Don't lose it.
3. If you use byte perhaps short Variable of type , Then the data value on the right cannot exceed the range of the type on the left
4. Variables that are not assigned , Can't be used directly ; Be sure to assign the value after , Can be used
5. Variables cannot be used beyond the scope of the scope
【 Scope 】: Start with the line that defines the variable , Until the end of the brace to which it belongs
Variables must be defined before using
If the variable is out of the range of braces , Out of scope , Variables can no longer be used
6. You can create multiple variables in one statement , But in general, it is not recommended to write 

边栏推荐
- Real time data warehouse - Design & Implementation of real-time data warehouse from 0 to 1 (sparkstreaming3.x)
- Xiaoyi and you talk about how to realize c-v2x HIL test in v2x test series (2022 version)
- 机器学习面试题(转载)
- TSN security protocol (802.1qci)
- What is the difference between Samsung series NAND flash?
- 【JVM】之堆内存、逃逸分析、栈上分配、同步省略、标量替换详解
- Introduction & use of Maxwell
- Redis 跳跃表实现原理 & 时间复杂度分析
- 目标检测和边界框
- Flink入门到实战-阶段二(图解运行时架构)
猜你喜欢
随机推荐
[JVM] heap memory, escape analysis, on stack allocation, synchronous omission, scalar replacement details
环境变量和文件夹放置位置
Flutter3.0(framework框架)——UI渲染
A set of Jenkins style for personal use
1669. 合并两个链表(两个链表的合并)
@How can conditionalonmissingbean cover beans in third-party components
Use Altium designer software to draw a design based on stm32
Regular expression extraction of matching content
SSM integration
正则表达示提取匹配内容
Basic lighting knowledge of shader introduction
自用的一套Jenkins样式
nodejs
五十九 获取原型图大小
Thales security solutions: key steps to improve national network security
[operation rules] how to realize TSN system level test?
RNN卷积神经网络
TSN security protocol (802.1qci)
看完代码回首看论文:YOLOv3重读
V2X测试系列之认识V2X第二阶段应用场景









