Eighth Week Java LearningThis week, the teacher led us to improve the inheritance, excuses, copies, lambda expressions, internal categories lack, imperfect place, help us to check the gaps.as an example of copy learning, I had a very superficial understanding of the copy, the deep copy and the shallow copy is: Deep copy is to create a new object, contrast shallow copy, change the copy of the object properties will not affect the original object. After more careful study, it is understood that th
this week, after reviewing the interface, I learned about the use of internal classes. An inner class is a class that is defined inside another class, and the outer class is called an outer class, and after learning the inner class, think about why you should learn the inner class, for three reasons:1), the inner class method can access data in the scope where the class definition resides, including private data.2
Through this chapter of learning, I know the program, process and the relationship between threads, know the Java implementation of the two ways of Multithreading: 1. Create a subclass of the thread class; 2. Define the class that implements the Runnable interface in the program. Thread interrupts, thread six states, multi-threaded scheduling, daemon threads, thread synchronization, and so on.201671010107 2
Java Learning Week 13ththis week, the first six chapters of the knowledge point of the small test, in the test I also found a lot of their own learning on the hidden dangers, some knowledge points to understand too rough, not very good to remember those important small details, the attention to the program run, the algorithm design, but ignored the very important basic knowledge of memory , it is very dangerous, only a good understanding, master the basic knowledge, to be able to better design p
, such as the windowadapter class, accordingly. The adapter has implemented the appropriate interface, such as the windowadapter class implements the windowlistener interface. Therefore, you can use objects created by the Windowadapter subclass to do the monitor, overriding the required interface methods in the subclass.
Mouse Events MouseEvent
Event Source: Mouse events can occur on any componentMouse events are triggered when the mouse enters the component, exits the comp
Basic question Answer (1) What is a form 我认为,form概念主要区分于table,table是用网页布局设计,是静态的,form是用于显示和收集信息传递到服务器和后台数据库中,是动态的; 以下是表单的百度百科: 表单在网页中主要负责数据采集功能。一个表单有三个基本组成部分: 表单标签:这里面包含了处理表单数据所用CGI程序的URL以及数据提交到服务器的方法。 表单域:包含了文本框、密码框、隐藏域、多行文本框、复选框、单选框、下拉选择框和文件上传框等。 表单按钮:包括提交按钮、复位按钮和一般按钮;用于将数据传送到服务器上的CGI脚本或者取消输入,还可以用表单按钮来控制其他定义了处理脚本的处理工作。(2) The browser can parse what language to run. HTML(超文本标记语言)、XML(可扩展标记语
; - //outputs the variables corresponding to the a,b,c,d; the Console.WriteLine (a); - Console.WriteLine (b); -Console.Write (c+d); - + - //prevent flash-back; +Console.ReadLine ();3, int int. The most basic understanding of parseint is the arithmetic that subtraction the computer to run the numbers.1 {2 intA, B, C;3A =1;4b =2;5c =6;6 int
2017-2018-2 1723 "Java Programming" course pair programming Exercises _ Arithmetic Group members
20172327 Marian
20172320 Li Shu
20172317 Shing
Demand analysis
Automatically generate problems
can be used independently (able to write the function of the test class to create a separate problem)
can generate different levels of problems
Different l
list that has a message queue identifier (queue ID). Msgget creates a new queue or opens an existing queue, MSGSND adds a new message to the end of the queue, MSGRCV takes a message from the queue, does not necessarily follow FIFO, or can fetch messages by the Type field of the message.
Comparison of Message Queuing and named pipesMessage Queuing is much the same as named Pipes, where the process of communicating Message Queuing, like a named pipe, can be unrelated processes, and
1.
Moonphases
(read/write) Number of lines of code
Posted Blog Volume/Blog comments number
Classroom/after-school time (hours)
The most satisfying programming task
First week
50/25
1/2
6/4
wrote a small program
Second week
100/50
1, beginner C #.C # is specifically designed for. NET application, he absorbed the advantages of C + +, Visual Basic, Delphi, Java and other languages, and improved the efficiency of program development.2, the Visual Studio.NET integrated development environment.The initial operation is divided into 5 steps: Open vs, click "File" in the upper left corner, select "New" "Project"-The new form will open. Selec
2017-2018-2 20165318 Experiment Report of Java object-oriented programming experiment report I. COVER of experimental reportsCourse : Java Programming Class : 1653 class name : Sun Xiaolin No. : 20165318 Instructor: Lou Jia Peng experiment Date : April 27, 2018Experiment Time : 13:45-3:25 Experiment serial number : Experiment threeExperiment name : Agile Development and XP practiceExperimental content :
,bounceframe,bounce)
from Ball Class (new 2d ellipse, defined Move method)Ballcomponent Class ()The bounce program should be queued for the user's actions, the event will respond to the next, the program serial,The Bouncethread program, executed with thread threads, is defined as the thread, concurrency of the event response action in Addball
There are two ways to implement a synchronization mechanism:
1. Synchronize code blocks:
does not depend on class-specific instances and is shared by all instances of the class.
The definition of a method must have a return value type modifier, one of which indicates that the method has no return value, and that the keyword is void.
The main () method is the entry method for the Java application, which means that the first method to execute is the main () method when the program is running.
2. Object-oriented Programming cou
Chapter 1th Java Introduction Java featuresSimpleObject orientedPlatform-IndependentMultithreading: Allows multiple tasks to be completed at the same timeDynamic: The basic component of a Java program is a class (some classes are written by themselves, some are introduced from a class library, and classes are dynamically loaded at runtime)Platform and JDK installation(1) Java SE (formerly known as J2SE) is called Java Standard Edition or Java standard
, which are tools for inserting some code error detection statements in the development and testing phases of a program. The assertion (Assert) syntax is as follows:1. Assert condition or 2, assert condition: expressionBoth forms will judge the Boolean "condition", if the result is False (false), the program is already in an incorrect state, the system throws Assertionerror, gives a warning and exits. In th
During The learning process in this chapter, I learned about the concept of inheritance, which is a core technology in Java programming and a mechanism for building new classes with existing classes. When a new class is defined to inherit a class, the new class inherits the method and domain of the class, adding new methods and fields to the new class to accommodate the new situation. The main advantages of inheritance are: 1: Code reusability
When you run a program with a package name on the book
WORKAROUND: There are two different programs in this package, compile Stu.java first, compile Example4_15.java, and then run Example4_15
Occurs when running a triangle class with a packageProgram for
Workaround: Create the appropriate folder for the name after the package, move the program into the folder, and run the compilation
When compiling a program, you can use thejavac-g-D. /.. /b
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.