Java Study Notes 11 (Object-Oriented 4: Polymorphism) and java Study Notes
Polymorphism:
Example: Describes multiple forms of a thing. For example, the Student class inherits the Person class. A Student object is both Student and Person.
Polymorphism is: the parent class reference variable can point to the subclass obj
Java Study Notes 30, java Study Notes
The sortedlist class is the implementation class of the List interface. It is a List set and allows random access to the collection elements based on the index. In addition, the consumer list is also real
The Deque interface can be used as a dual-end queue or a "stack. A chain-bas
Java study notes 28, java Study Notes
Vector is the implementation class of the List interface and supports all functions of the List interface. The Vector class is a List class implemented based on arrays and encapsulates a dynamic,
The Object [] array that allows redistribution. The Vector is thread-safe and require
Java Study Notes 27, java Study Notes
Vector is the implementation class of the List interface and supports all functions of the List interface. The Vector class is a List class implemented based on arrays and encapsulates a dynamic,
The Object [] array that allows redistribution. The Vector is thread-safe and require
Java Study Notes 17 (Object-Oriented 10: Comprehensive cases) and java Study Notes
At the end of the object-oriented topic
Combined with the previous articles, I used many Object-Oriented Knowledge and made a simple case:
Hotel case:
Package hotel;/** hotel staff class * Common Features of employees: name, Employee i
Java Study Notes 3 (array), java Study Notes 3 Array
1. array definition:
First:
Public class ArrayDemo {Public static void main (String [] args ){// Define an arrayInt [] arr = new int [3];// The default value of the element in the array is 0.System. out. println (arr [0]);System. out. println (arr. length );}}
Here
12
13
8899
1498
141
18
4: Optional 4.1: Character stream with text file: Using PrintWriter (Write), BufferedReader (read) 1: Generated three student objects, Use PrintWriter's println method to write to Student.txt, one student per line, and each student's attribute separated by |. Use scanner or BufferedReader to read the Student.txt data. (Key code, occurrence number)Operation Result:2: How much is the generated file size (using the right-click
Java Study Notes 6 -- class inheritance, Object class, and study notes 6 --
Next, we learned the following:
Java study notes 5-Class Method
Java Study Notes 4-basic concepts of classes
1: Summary of this week's study2: Using a database to retrofit your system 2.1: A brief description of how to use the database to transform your system. What table do you want to build? The design of your watch.Create a table for a libraryCreate a library information table for readers---assume that a person can borrow up to 3 books.2.2.: What are the key classes in JDBC used in the system? 2.3: Key code for database-related modules. Critical lines need to be annotated. 3: Code Volume statisticsS
Java gui programming Overview Study Notes (22), gui Study Notes
The following content is my study notes on the java video tutorial of Miss Bi Xiangdong!
Java gui programming:Windows provides two methods:1. GUI2. CLI;GUI: Grahi
Java Study Notes 2 -- data type, array, Study Notes 2 --
URL: http://www.cnblogs.com/archimedes/p/java-study-note2.html.1. Data Type
Java data types include:
Primitive Data Types)
Reference type)
Java Study Notes-JDBC and Study Notes-jdbcIntroduction to JDBC
1. to simplify and unify database operations, SUN defines a set of Java database operation specifications, called JDBC.2. database-driven3. JDBC is called JAVA DataBase commecti.pdf (
Java Study Notes-JDBC6 (21), study notes jdbc6
1. Use a dynamic proxy to write the connection pool
Design:
Proxy target: Native connection.
Proxy purpose: Modify the close method so that the close method cannot close the connection and actively detaches the connection.
Communicate with the thread through a dynamic Proxy:
1: proxy for Cxonnection.
2: The Connecti
Java programming ideology Study Notes (1), programming ideology Study NotesObject Introduction
1. Abstract all programming languages provide abstract mechanisms. For example, assembly is a slight abstraction of the machine, and C language is an abstraction of assembly. In comparison, these languages have strong limitations in solving problems. Because they force
: Explain the module you are responsible for, and paste the key code of your own module (the number and name of the school). 3: Code Cloud and PTA3.1: Code cloud codes Submission record3.2: "Multi-threaded" PTA Submission List3.3: Count the amount of code done this week
Week Time
Total code Amount
new increase in code volume
Total Folder
Add new Folder
1
114
114
11
11
2
520
50W
16
6
10
6680
985
102
18
4: Evaluate how much you understand Java
Dimension of
Grammar
Some basic grammar is not a problem, but there are some unskilled grammar, need Baidu
Object-oriented design
This aspect is weak, has the basic logic of thinking, in doing the shopping cart big homework often will make mistakes, do not know where to start
ActionListener () { Span class= "hljs-function" >public void actionperformed (ActionEvent evt) {B.setlabel (new Integer (++count). toString ()); //every click of the button, the number on the button will be added 1}); F.add (b); //Add button f.setsize (100,200); //set Form size f.setbackground (Color.pink); //set the form color f.setvisible (true); //set form Visible}}
5. Pair programming: Object-oriented design (big job 2-very important, unfinished-2)Continue to refine last week's
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.