Homework 01 - Basic Java Concepts

Week 1 - Java Basic Concepts

Write a blog titled 学号 《Java程序设计》第1周学习总结, with the following sections:

1. This week's learning summary

Describe this week's learning in a few key words. and articulate the connections between key concepts.
Principle: less but more, write by yourself. Even if it does not exceed 5 lines, please do not simply copy and paste.

2. Written work

1. Virtual machine

1.1 What are the steps to execute a java program? Why can java programs run cross-platform? (Please organize your own language answer, do not directly copy the reference materials on the web page, if there is a reference, please use the >mark, otherwise -5 points)
1.2 What is jdk, jre, jvm? What is the relationship between jdk, jre, and jvm? Can ordinary users only install jvm in order to run java programs?

2. java与javac

2.1 In the java HelloWorld command, what is the meaning of this command? What does the parameter HelloWorld refer to?
2.2 Why do you need to set Path when executing javac on the command line?
2.3 Use java to write programs and run them and use c language to write programs and run them, java programs finally generate .classfiles, and c language finally generates .exefiles. Both files work, but what's the difference?

3. Experiment summary (no large code should appear):

3.1 Read some routines for submitting Java programs in PTA . Answer: a. How is input handled in PTA? b. How to format the output? c. What are the common mistakes. Please bookmark this website. When you encounter problems in PTA, please refer to this website to find the answer.
3.2 5-2 (take the number) experimental summary.
3.3 5-3 (take digital floating point number) experimental summary.
3.4 Optional: 5-4 (root sign), 5-5 (leading zero in binary), 5-4 (use dichotomy or Newton iterative method to realize root sign, no limit to retain decimals, combine the result with Math .sqrt comparison, compare the performance with the step-by-step approximation method. Note: the case of <=1 and >1)
Note: 5-5 in 3.2 and 3.3 and 3.4 can query the JDK documentation for help.
References:

Question set jmu-Java-01-Basic Getting Started
JDK Documentation

4. What are the main applications of Java? What are your goals and expectations for this course?

  • Please describe your basics (what language do you know, how do you master C language and data structures)
  • What do you think you can do with Java after taking this course? What do you want to do with Java?
  • Set a goal: How much time are you going to spend in this class during the week? How many lines of code will you write this semester? Average to how many lines per week? How are you going to learn? When you encounter difficulties, how do you plan to solve them? Write in Markdown form.
    References:

    Smart target reference link for this course

3. Use CodeCloud to manage Java code

3.1 Using Git

  • Build your project on the code cloud (project name: java + student number, such as java201321123001). After synchronizing to the local machine, build the exp1 package, write HelloWorld, and push it to the remote warehouse. Please take screenshots of the local machine (local project, local warehouse) and remote warehouse. Bonus: Use command-line Git to manage your code.
  • In the code cloud project, select "Statistics-Commits History-Set Time Period" in turn, search and take screenshots, as shown in the figure below, the student number and project submission instructions need to appear

References:

Using Eclipse Egit and Code Cloud to Manage Your Code - Graphical Interface
Git and Code Cloud (Git@OSC) Getting Started - How to Sync Your Code in the Lab and Dorm (1) - Command Line

3.2 Screenshot Question Set "Java Basic Grammar" PTA Submission List

  • Screenshot example (ranking screenshot, submission list screenshot):

1.png
2.png

3.3 Use the jar program developed by the seniors and seniors to count the amount of code per week

Project address: https://gitee.com/jmulyq/TongJiDaiMaShu
Project wiki address: https://gitee.com/jmulyq/TongJiDaiMaShu/wikis/Home
You can put forward improvement opinions and questions to project developers in the issue .
Use the jar program to generate the following Markdown table and put it into the blog job.

Week total code add code total number of files Number of new files
1 200 200 3 3

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325124749&siteId=291194637