201871010128- Yang Lixia "object-oriented programming (java)" in the first week learning summary
project |
content |
This work belongs courses |
https://www.cnblogs.com/nwnu-daizh/ |
Where this requirement in the job |
https://www.cnblogs.com/nwnu-daizh/p/11435127.html |
Job learning objectives |
1. For class to class teaching methods and teacher requirements, course of study to master the necessary software tools; 2. understand the JVM , the JRE and JDK concepts, learn to download, install, test JDK ; 3. grasp the PATH , the CLASSPATH system variable effects and sets; 4. master the command-line compiler and run Java -step procedure; 5. master the Java Application features of the program structure; 6. grasp JDK command line mode developed to run Java -step procedure. 7. initially use the Eclipse , learn to compile, run, debug simple Java Application program.
|
Part I: curriculum learning platform registered account
Platform name |
Registered account or a personal blog Park Address |
Park blog: www.cnblogs.com |
https://www.cnblogs.com/ylxzjh |
Programming Evaluation: https: //pintia.cn/ |
|
Chinese University MOOC: https://www.icourse163.org/ |
18194162031 |
The following answer yes or no |
|
Whether to join the class curriculum group blog |
Yes |
QQ group to discuss whether to join the course |
Yes |
Part II: theoretical knowledge and learning section
Chapter One
- Java is not only a programming language, but also a complete programming platform. Java is a simple, object-oriented, distributed, robustness, security, system architecture-neutral, portable, interpreted, high-performance, multi-threaded, dynamic language.
(1) Java syntax style similar to C ++, C ++ programmers can therefore quickly master the Java programming technology.
(2) technology is the main features of modern object-oriented programming language, and compared to C ++, Java language is a pure object-oriented language, it has the following characteristics of object-oriented languages: encapsulation, polymorphism and inheritance.
(3) networking skills
(4) Robustness
(5) Security
(6) Neutral Architecture
(7) Portability
(8) interpreted
(9) High-performance, multithreaded, dynamic
(10) JavaApplet means: users download Java byte code from the Internet, and run on your own machine, Java programs that run in a Web page called Applet. In order to use Applet, we need to start Java-enabled Web browser to execute bytecode; Applet support a dynamic web technology
Chapter two
Learn to download, install, test the JDK ;
Grasp the PATH , the CLASSPATH system variable effects and sets;
Master the command-line compiler and run Java -step procedure;
Master the Java Application Program Structure characteristics;
Master JDK developed to run the command line Java -step procedure.
The initial use of Elipse , learn to compile, run, debug simple Java Application program.
Part III: Experimental part
1. Experiment name: experiment a Java programming environment
2. Purpose:
(1) Installation and configuration of JDK master;
(2) master the basic commands and steps to use JDK develop Java programs;
(3) proficiency in the use Elipse integrated development environment for developing the basic steps java program
(4) master the basic syntax of Java programs.
3. Experimental procedure and content:
Experiment 1 JDK installation and configuration
(1) downloaded from the link Banqun JDK
(2) Installation JDK
(3) Configuration JDK environment variables
Right this computer - Computer - Properties - Advanced System Settings you will see the environment variables;
Click on the figure of environment variables, and then start the configuration environment variable;
In the pop-up environment variables [] in [System variables], find the path ;
Then click on the path , there appeared editing system variables, there are variable names and values;
Press window key + R key to open the run, input cmd , carriage return, the routine proceeds dos
Followed by input Javac, jav if out of JDK version information, then the environment variable success
Experiment 2 download package textbook example
Download link to this page: http://horstmann.com/corejava/ , file name: corejava.zip
Experiment 3 command-line compiler program run Welcome.java
code show as below
public class Welcome
{
public static void main(String[] args)
{
String greeting = "Welcome to Core Java!";
System.out.println(greeting);
for (int i = 0; i < greeting.length(); i++)
System.out.print("=");
System.out.println();
}
}
Perform output
Experiment 4 with JDK command-line development HelloWorld!
public class HelloWorld
{
public static void main(String args[])
{
System.out.println("HelloWorld!");
}
}
result:
Experiment 5 download and install Eclipse integrated development package
Experiment 6 using the Eclipse development program output multiplication table
code show as below:
public class test {
public static void main(String[] args) {
int sum;
for(int i=1;i<=9;i++) {
for(int j=1;j<=i;j++) {
sum=i*j;
System.out.print(j+"*"+i+"="+sum+" ");
}
System.out.println();
}
}
4. Experimental Summary: (15 minutes)
In this experiment, the first exposure to java, I mastered the basic rules of Java programming knowledge points and some tips, especially for object-oriented programming ideas and style have a better understanding and experience. For these experiments, ask the teacher, peer support, access to information and other basic way of learning, help me solve the problem. So my understanding of programming a step deeper. But in the machine debugging, when the program is running or is experiencing considerable problems. Many mistakes are hard to understand, and sometimes erroneous input, this error is relatively easy to find out, but there are some problems, such as some file types do not match, naming error, program error, etc. to remind myself hard to find, so after learning of their own should be more access to information, and more-on exercises to improve their professional skills.