201871010107- high seas Yu "object-oriented programming (java)" in the first week learning summary

                      201871010107- high seas Yu "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
   Target operational requirements

1. Understand the school curriculum and the way teachers teaching requirements master courses necessary software tools;

2. Understand the JVM, JRE and JDK concepts, learn to download, install, test JDK;

3. Master PATH, CLASSPATH system variable effect and sets;

4. Master command-line compiler and run a Java program steps;

5. grasp the characteristics of Java Application Program Structure;

6. The next step to grasp JDK command line developed to run Java programs.

7. initially use 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/gonghaiyu/

 Programming Evaluation: https: //pintia.cn/

 [email protected]
 Chinese University MOOC: https://www.icourse163.org/  18093670834
 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

The first chapter outlines designed for Java programs, is to introduce the Java programming platform, a brief history of the development of Java and Java features and common misconceptions and so on.

1, Java is an object-oriented programming language, not only absorbed the various advantages of the C ++ language, but also abandoned in C ++ multiple inheritance is difficult to understand concepts such as pointers, so the Java language has a powerful and easy to use two features. Java language as a static representative of object-oriented programming languages, object-oriented to achieve an excellent theory, allows programmers to elegant way of thinking complex programming.

2, Java "White Paper" that the sun's statement of the Java language features, simple, object-oriented, distributed, robustness, security, system architecture-neutral, portable, interpreted, high-performance, multi-threaded, dynamic of these characteristics.

1) Simplicity

①Java grammar is a C ++ syntax of the "clean" version, with no header files, pointer arithmetic, structure, union, and so on.

②Java be able to operate independently in a small space.

2) object-oriented: the multiple inheritance and introspection.

3) Distributed: Java has a rich library of routines for processing like TCP HTTP and FTP like / IP protocol, which allows Java applications to access the network and open objects very easy through a URL.

4) Robustness

①Java pointer model used and eliminates the possibility of corrupted data rewriting memory data corruption.

②Java compiler can detect problems at runtime can be detected in other languages ​​only.

5) Security: Java requires all memory access operations must be achieved through an object instance variables, preventing private members programmer access to the object, but also to avoid erroneous operation pointer prone. And from the beginning of the first edition, Java has a digital signature.

6) architecture-neutral: the compiler to generate an architecture neutral object file format structure, this compiled code as long as the Java runtime system, it can run on many processors.

7) Portability

①Java basic data about the size and type of operation have made a clear explanation.

② as a library component systems, defines the interface portable.

8) interpreted: Java Java bytecode interpretation may be performed directly on any machine interpreter transplant.

9) High performance: Java is an interpreted language, which does not exceed the speed of compiled languages ​​C, but other interpreted languages, such as BASIC, different, Java bytecode is designed so that it can quickly be converted directly to the corresponding CPU is machine code, and therefore have a higher performance.

10) Multithreading

①Java platform put a program into multiple tasks in order to make the task easy to complete large and limit the use of multiprocessor resources.

② multi-threading mechanism enables Java has become the main server-side application development language.

11) dynamic: Java can adapt to a constantly evolving environment, Java class library can freely add new methods and instance variables without affecting the user program execution.

3, learned from the brief history of the development of the Java programming platform Java is evolving, and learned from the difference between Java SE, Java EE, Java ME's.

Chapter two

第二章内容主要为Java程序设计环境的配置和使用。

1、安装Java开发工具包。包括下载JDK、设置JDK、安装库源文件和文档。

2、使用命令行工具。打开一个终端窗口→进入corejava/v1ch02/Welcome目录 →Javac Welcome.java→Java Welcome(注意大小写)

3、使用集成开发环境。下载安装Eclipse,启动Eclipse之后,从菜单选择File->New->Project。从向导对话框中选择Java Project。点击Next按钮,不选中“Use default location”复选框,点击Browse导航到corejava/v1ch02/Welcome目录,点击Finish按钮,这个工程完成创建,点击工程窗口中的三角,直到找到Welcome.java并双击,用鼠标右键点击最左侧窗格中的工程名(welcome),选择Run->Run As->Java Application。

 

第三部分:实验部分

1、实验名称:实验一 Java程序设计环境

2、 实验目的:

(1)掌握JDK的安装与配置;

(2)掌握使用JDK开发Java程序的基本命令及步骤;

(3)熟练运用Elipse集成开发环境开发java程序的基本步骤

(4)掌握Java程序的基本语法。

3、实验步骤与内容:

实验1 JDK的安装与配置

1)首先在2018级计师(1)OO群里点击老师发的 jdk-10.0.2_windows-x64_bin.exe文件的下载,下载完成后进行安装。

2)安装完成后,打开安装目录,可看到如下图的文件夹。

3)安装完成后,需要进行环境变量的配置,双击此电脑→空白处单击右键→属性→高级系统设置就会看到环境变量,然后点击环境变量进行配置。

 

 

4)按window键+R键,打开运行,输入cmd,按回车键,弹出一个黑框,输入java反应后输入javac后出现以下界面即表示配置成功。

 

 

 实验2 下载教材示例程序包

在java讨论群里找到老师发的corejava.zip这个文件,点击下载,下载完成后进行解压,将其解压到D盘。

实验3 命令行编译运行Welcome.java程序

1)首先打开java的运行环境,然后输入D:(因为之前解压到了D盘里)按回车键;

2)然后输入Javac Welcome.java,会发现此时D盘的文件里,即Welcome.java上面出现了Welcome.class的文件;

3)再输入Java Welcome,按回车键,其就运行出Welcome.java,如下图所以示。

 

 

 实验4 用JDK命令行开发HelloWorld!程序

程序如下列所示:

public class HelloWorld

{

    public static void main(String args[])

    {

       System.out.println("HelloWorld!");

    }

}

 

运行结果如下图所示

 

 

 实验5 下载安装Eclipse集成开发软件包

1)在班级群里面找到助教发的eclipse-inst-win64.exe,点击下载,下载后出现以下页面,然后选择第一个下载。

 

 

 实验6 利用Eclipse开发程序输出九九乘法表

代码:

public class test1 {

public static void main(String[] args)

   {

int i, j;
                   for(i=1; i<=9; i++){
                           for(j=1; j<=9; j++){
                                   if(i>=j) {
                                        System.out.printf("%d*%d=%2d  ", j, i, j * i);
                                    }
                               }
                           System.out.print("\n");

      }              

   }

}

 

运行结果:

 

 

 

4.、实验总结

1)通过本次课程的学习我对Java程序设计这门课程有了初步的了解;学习了Java的发展史及Java程序设计环境等知识。

2)学会了如何下载安装JDK和Elipse,怎么正确改变环境变量,学习到了很多知识。

3)安装过程中遇到了很多问题,调试、安装、新建项目等等一系列问题让人头大,但所幸在助教老师和同学的帮助下成功完成了作业。

4)第一节Java课我学到了很多东西,尤其是理论和实践相结合这方面。通过一系列的下载、安装、调试和编译运行过程,提高了我的动手能力和实际操作能力。希望在以后的学习生活中我能够越来越熟练的运用这些软件,提高自己的编程水平。

 

Guess you like

Origin www.cnblogs.com/gonghaiyu/p/11444444.html