Start learning Java today and learn to use the book as core java. Prior experience with C. Be prepared to record all the ideas, hard-to-understand, and important things that you learn about this book. I hope I can restudying it in retrospect. I also hope that I can insist on the whole process of learning this book to record.
I want to put a ding in the universe.
Basic terminology:
Object oriented programming--oop--OO programming
Application Programming interface--api--application Programming interface
Java Development kit--jdk--Toolkit for programmers who write Java programs
Java Runtime environment--jre--running Java program running environment
Java virtual Machine--jvm--java vm, included in JRE
Standard edition--se--Java Platform for desktop or simple server applications
Enterprise edition--ee--Java Platform for complex server applications
Micro edition--me--Java platform for mobile phones and other small devices
Eclipse--java Common IDE
Environment configuration:
Environment variables:
Take my personal JDK installation path for example: C:\Program files\java\jdk1.8.0_11
Right button "My Computer"--"properties"--"Advanced system Settings"--"advanced"-"Environment variables"
New "Environment variable"--"variable name" "Java_home"--"Variable Value" "C:\Program files\java\jdk1.8.0_11"
New "Environment variable"--"variable name" "CLASSPATH"--"variable value".; %java_home%\lib;%java_home%\lib\dt.jar;%java_home%\lib\tools.jar "
Find the system variable "Path"--Precede the "variable value" with "%java_home%\bin;%java_home%\jre\bin;"
Environment variable Configuration success standard (need to restart the computer): Open cmd, enter Java/java–version/javac after the corresponding prompt is the success.
Eclipse Chinese Package Download & installation Method (not recommended):
Open http://www.eclipse.org/babel/--Click "Downloads"--Select your Eclipse version (Luna/kepler/juno)--Find "Language:chinese ( Simplified) "--Download" Babellanguagepack-eclipse-zh_4.4.0.v20140623020002.zip "--unzip" features "and" plugins "in the package to eclipse \dropins--Restart Eclipse
Eclipse Text Editor font settings:
Window->preferences->general->appearance->colors and Fonts->basic->text Font
Java Official API Documentation:
Open http://www.oracle.com/technetwork/java/javase/downloads/index.html--under "Additional Resources" find the desired version "Java SE X Documentation "
To compile & Run a Java program using the command line:
(Take the example of Helloworld.java program in figure) after the environment variable is configured successfully--run cmd--into the Helloworld.java program directory you want to compile--enter Javac Helloworld.java (note case sensitive)--Enter Java HelloWorld (no input file suffix required)--show results
Eclipse Common shortcut keys:
ctrl+shift+f--Code Formatting
ctrl+d--Delete When moving forward
ctrl+/--the selected part of the comment
alt+/--Complement & Help
shift+enter/ctrl+shift+enter--Create a new row below/on the current line
ALT + arrow key--Moves the current line contents up or down
alt+shift+r--renaming
Core Java Learning Note--1. Terminology environment Configuration/eclipse font Shortcuts/API documents