![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JAVA
阿文PIONEER
傲慢
展开
-
Java Notes 08 Package | 包
Package A group of related types providing access protection and name space management. Shows at the top of the source file Written in lower-case (避免与class和interface的命名冲突) Internet domain name Import...原创 2019-03-14 04:27:20 · 114 阅读 · 0 评论 -
JAVA Diff between TCP&UDP (UC)
TCP (Transmission control protocol) Connection based protocol Provide reliable flow of data between two computers UDP(User Datagram Protocol) Send independent packets of data(datagram) Send message fr...原创 2019-04-09 00:40:55 · 98 阅读 · 0 评论 -
Java socket Client-Servers对话框实现(GUI)
就这么一点东西花了我俩小时。。。嘤! 注释晚点补上 需要用到eclipse里面的window builder插件(market里面大概率会卡,最后官网URL下载 首先我们需要一个GUI panel: package clientserver; public class GUI { static window w; static window2 w2; static server ss; ...原创 2019-04-02 18:28:08 · 548 阅读 · 0 评论 -
Java Thread | 线程
Thread in Java Language and api provide concurrency in JAVA Multiple thread if execution Each thread has its own method-call stack 程序计数器 Life cycle of a thread Controlled by JVM New 在调取start()之前...原创 2019-03-28 13:33:50 · 146 阅读 · 0 评论 -
Java Notes 07 Class | 类
Object Java 是一种 object oriented programming language Garbage collection(垃圾回收机制) Object: represents an entity in the real world that can be distinctly identified. 有unique identity, state, and behavior...原创 2019-03-12 16:01:47 · 181 阅读 · 0 评论 -
Java Notes 06 Arrays | 数组
Signle Dimension Array Array is a data structure that represents a collection of the same types of data Size is Fixed 查看长度: arr.length Defualt value: Pass by value 普通: 改变scope/ method里的数值不会改变scope/ m...原创 2019-03-11 22:10:06 · 120 阅读 · 0 评论 -
Java Notes 05 Method | Java学习笔记 函数
Method A collection of statements that are grouped together to perform an operation. Define a mehod ^ Invoke when need ^ Signature A combination of the method name and the parameter list. Syntax meth...原创 2019-03-11 21:46:00 · 104 阅读 · 0 评论 -
Java Notes 04 JShell | Java学习笔记 JShell
JShell JShell is a REPL(Read-Evaluate-Print Loop) Available since JDK 9+ Evaluates declarations, statements, and expressions as they are entered and immediately shows the results 在写入/修改程序的同时得到result ...原创 2019-03-11 21:29:52 · 138 阅读 · 0 评论 -
JAVA Note 03 Types & expression | JAVA 学习笔记 03类型和表达式
Numeric Operators in Java Operator Description Example ++ Increment by 1(or 1.0) k++ - - Decrement by 1(or 1.0) k- - + Unary plus +value - Unary minus -value * Multiplication x*y / D...原创 2019-03-11 21:22:35 · 125 阅读 · 0 评论 -
Java Note 12 Override& Overload | 重写和重载异同
Overriding Replace implementation in the base class. Identical signature non-static method required X Private (Not accessible) X final (mehod)(class) Restrictions Overloading Type/ signature原创 2019-03-20 02:55:04 · 117 阅读 · 0 评论 -
Java Note 11 Inheritance | 继承
Inheritance A subclass is a class that extends another class inherits state and behavior from all its ancestor. Subclass inherits all, except private superclasses members The superclass refers to a d...原创 2019-03-20 02:40:32 · 113 阅读 · 0 评论 -
Java Note 10 Abstraction/ Encapsulation | 抽象与封装
Abstraction Class Class implementation seperates from the use of the class. 必须被继承(抽象类->继承关系) Derived class 可以是abstract 不能实例化 一个类只能inherit from one abstraction class 不能和static 同用 关键词 abstract &...原创 2019-03-14 22:06:28 · 235 阅读 · 0 评论 -
Java Notes 02 Hello World | JAVA学习笔记 01 小黑框
小黑框程序和错误提示 //define a class public class Welcome { //define main method public static void main(String[] args) { //statement ClassBlock System.out.println("Hello World!"); } } There are three types...原创 2019-03-07 11:45:10 · 151 阅读 · 0 评论 -
Java Notes 01 Intro to Background | JAVA学习笔记 01 背景介绍
IMPORTANT: THIS IS NOT A FORMAL INSTRUCTION, PLEASE KEEP DIGGING THROUGH THE GIVEN KEYWORDS. 本系列并非正经Java 教材, 没有长篇大论, 关键词已给出,欢迎深挖:) What is JAVA General Purpose Object Oriented* Platform Independent C...原创 2019-03-07 11:28:14 · 81 阅读 · 0 评论 -
Java Notes 09 static/ final/ this | 关键词
Static 关键词static memory management purpose get memory once(when loaded) static property is shared in all onj 适用于method, variable, block, class static method: can be invoked with our the creation of t...原创 2019-03-14 06:27:08 · 104 阅读 · 0 评论 -
JAVAThread Synchronization | 线程的同步 (UC)
同步的好处 Thesynchronizationismainlyusedto Prevent thread interference. Prevent consistency problem. 种类 Therearetwotypesofsynchronization Process Synchronization. Thread Synchronization. Thread...原创 2019-04-03 13:01:19 · 283 阅读 · 0 评论