20165210 Java Seventh Week study summary textbook content Learning
11th Chapter Study Summary
To connect to a database:
1. 下载JDBC-MySQL数据库驱动2. 加载JDBC-MySQL数据库驱动3. 连接数据库4. 注意汉字问题
Query operation:
Each interview needs to look at the design pattern, each time is very good understanding, but the actual development of no application always forget. Now summarize it.23 Different design modesIn general, design patterns fall into three broad
Person stuproxy= (person) proxy.newproxyinstance. Classnew Class[]{person. Class}, Stuhandler), M0=class.forname ("Java.lang.Object"). GetMethod ("ToString",new class[0 ])where new class [] {person.class} and new class[0] are not very well
Idea: First of all, the original picture to stream the way to read it, and then stream the way to save to the target file:package imgstream;import java.io.*;p ublic class Imgstream {public static void Mai N (String srga[]) {File Source = new
1 Packagelog;2 3 Public classTest4 {4 5 /**6 * Java Algorithm---Select Sort7 * 8 * @paramargs9 */Ten Public Static voidMain (string[] args) { One //arrays that need to be sorted A intArr[] = {49, 20, 36, 51,
Phenomenon:The phenomenon of this type of bug is that when fragment is not added to the activity, it calls the Fragment getresources (). getString (r.string.xxx) function.Reason:Before fragment is added to the activity, it can cause this exception
1, Ajax is "asynchronous Javascript and XML" (Asynchronous JavaScript and XML), is a web development technology to create interactive Web applications. Ajax = Asynchronous JavaScript and XML (a subset of standard generic markup languages). Ajax is a
1 Packagelog;2 3 Public classTest4 {4 5 /**6 * Java algorithm---fast sorting7 * 8 * @paramargs9 */Ten Public Static voidMain (string[] args) { One //arrays that need to be sorted A intArr[] = {49, 20, 36, 51,
Differences between inner classes and static inner classesInner class:1. Variables and methods within the inner class cannot be declared static.2. Internal class instantiation: B is the inner class of a, instantiating b:a.b B = new A (). New B ().3.
Jstack is used to produce a thread snapshot of the current moment of the Java virtual machine. Thread snapshots are the methods that each thread in the current Java Virtual machine is executingCollection of stacks, the primary purpose of generating
Final1. Retouching dataThe declaration data is a constant, either a compile-time or a constant that cannot be changed after the runtime is initialized.
For basic types,final causes the values to be unchanged;
For reference types,final
One, Java Run commandThere are three ways to start a Java program:1, Java-jarIn the generated jar package, the manifest file defines the main Class, which you can use toJava-jar Test.jar2, JAVA-CPThere is no main class configuration in the generated
20165204 Java Fifth Week study summary Study NotesProblem
The code for E10-20 's standardized test shows the correct answer at the end of my question. Do not know how to solve.
E10-21 in the Address Book entry program, the code compiles
/** * The system command * /try { process process = runtime.getruntime (). EXEC ("ipconfig"); Scanner Scanner = new Scanner (Process.getinputstream (), "GBK"); while (Scanner.hasnextline ()) {
(a) Study summary 1. What is a construction method? What is an overload of a constructor method? Can the following program be compiled? Why?
The constructor method definition method is similar to the normal method, where the primary function is
Severe:error Configuring application Listener of Class Org.springframework.web.context.ContextLoaderListenerjava.lang.ClassNotFoundException: Org.springframework.web.context.ContextLoaderListener at
Public StaticList>jsontolist (String json) {Jsonreader Reader=NewJsonreader (NewStringReader (JSON));//have been streaming the way to handle it quickly hereReader.startarray (); List> rslist =NewArraylist>(); Map map =NULL; inti = 0;
[Code] javaMail + spring + QQ email, javamailspring
1. Dependency: the spring version is modified according to the specific environment.
javax. mail mail 1.4 org. springframework spring-context-support $ {spring. version}
016.2 String, 016.2 string
#######################################Comparison Method: equals ()String length: int length ()Character location: int indexOf (ch, fromIndex );Returns the character char charAt (int) at the specified position)Obtain
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service