
java基础
文章平均质量分 56
你的程序员大叔
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Java封装 encapsulation
why we use encapsulation in java? 1- data controling(数据掌控) Imaging if you set a person class, and you don’t want his/ her age beyond 200. so, you can set the code into setMethod to control the age under 200.( if age < 200) 2- data security(数据安全) Private原创 2021-08-31 08:26:17 · 134 阅读 · 0 评论 -
Java This 关键字
This key word in Java A lot of people must know how to use “this” in java programming, but do they really know what exact This is and why does it exist ? 1 - Why we need to use “This” in java? class Student{ int number; int age;// two instance variables原创 2021-08-31 08:07:28 · 146 阅读 · 0 评论 -
同步和异步
1- Asychronous(异步) If x does y asynchronously, then x does not wait for y to complete before doing next thing. 如果x任务异步执行y任务,就相当于x任务还没等y任务完成,就去做 下一个任务。 2 - Sychronous(同步) If x does y sychronously, then x waits for y to complete before doing next thing. 如果x任原创 2021-08-29 08:30:58 · 146 阅读 · 0 评论 -
java数据类型
1-Primitive data type A primitive data type specifies the size of variable values, and it has no additional methods. 2-Reference data type String array class(object) interface Annotations(@override) Enumeration原创 2021-08-29 08:15:08 · 95 阅读 · 0 评论 -
1--Modifier in java(java访问修饰符)
1-access modifiers 2-non-access modifiers原创 2021-08-29 03:25:23 · 315 阅读 · 0 评论 -
JAVA的命名规则
Naming conventions 1- Package naming convention It should be named based on the field’s name of the company and all characters should be lowercase. Eg: www.google.test 2- Class naming convention The first character of every word in class name should be cap原创 2021-08-26 08:51:32 · 180 阅读 · 0 评论 -
Java Static关键字
Static In Java static is a really common keyword that is heavily used in java programming. why do we need to use static in java? 1. The most important reason for using static keyword heavily in java is to efficiently manage the memory. Generally, if you w原创 2021-08-26 08:26:55 · 184 阅读 · 0 评论