Notes on Video Tutorial: Java Essential Training with David Gassner

Java is an interpreted language. It compiles to bytecode instead of machine language. The compiled application is portable between platforms without recompiling.

In computing, the Java Native Interface (JNI) is a programming framework that enables Java code running in a Java Virtual Machine (JVM) to call and be called by native applications (programs specific to a hardware and operating system platform) and libraries written in other languages such as C, C++ and assembly.

Java editions include Standard Edition(SE), Enterprise Edition(EE) and Micro Edition(ME).

All code is defined in classes. Classes are defined in source code files with .java extension. The javac command compiles Java code into bytecode. The java command runs compiled bytecode files.

Java is case sensitive.

Identifier Conventions:

Classes start with uppercase character.

Methods and variables start with lowercase character.

Constants are all uppercase.

Input "CMD" in windows explorer's address bar will open cmd window with the path of the folder  entered.

Primitive data types include numbers, characters, and booleans. They are stored in fastest available memory and their names are all lowercase. Remember, String is not a primitive.

Java is a statically typed language and all variables must have their types declared.

Primitive numeric variables default to 0.

An object is an instance of a class. Nonprimitive variables are references to objects.

String values are instances of java.lang.String.

String objects are immutable. Resetting the value of a String creates a new object.

Instance method - method defined in a class which is only accessable through the Object of the class are called Instancemethod. 

String literal in Java is immutable.

----------------------

IntelliJ idea

C:\Program Files\JetBrains\IntelliJ IDEA Community Edition 2019.1\bin目录下的idea.exe.vmoptions默认设置如下:

-server

-Xms128m

-Xmx512m

-XX:ReservedCodeCacheSize=240m

-XX:+UseConcMarkSweepGC

-XX:SoftRefLRUPolicyMSPerMB=50

-ea

-Dsun.io.useCanonCaches=false

-Djava.net.preferIPv4Stack=true

-Djdk.http.auth.tunneling.disabledSchemes=""

-XX:+HeapDumpOnOutOfMemoryError

-XX:-OmitStackTraceInFastThrow

更为下面的设置:

-server

-Xms1024m

-Xmx8192m

-XX:ReservedCodeCacheSize=1024m

-XX:+UseConcMarkSweepGC

-XX:SoftRefLRUPolicyMSPerMB=50

-ea

-Dsun.io.useCanonCaches=false

-Djava.net.preferIPv4Stack=true

-Djdk.http.auth.tunneling.disabledSchemes=""

-XX:+HeapDumpOnOutOfMemoryError

-XX:-OmitStackTraceInFastThrow

-----------------

Encapsulation helps to package complex functionality for ease of programming and to restrict accessing to individual functions and to hide complex functionality in methods.

 

Java supports single inheritance. Each class can extend only one direct superclass.

 

Inheritance relationship can be described as parent/child, base/derived, or superclass/subclass.


If a class isn't final, it can be extended.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值