Java Study Notes 13 (Object-Oriented 6: super), learning notes super
When creating a subclass object, the constructor of the parent class is executed first, becauseThe first line of all constructor methods has the default implicit super ();Statement
Note: The first line of the parent class constructor also has an implicit super ();
All classes have an "ancestor c
){ - //Public Static Boolean islowercase (char ch): Determines whether the given character is lowercase characters - if(Character.islowercase (ch[x])) { -Smallcount + +; - } - Else if(Character.isuppercase (ch[x])) { inBigcount + +; - } to Else if(Character.isdigit (ch[x])) { +Numbercount + +; - } the } *System.out.println ("The lowercase letters in a string have a total of" +smallcount+ "); $SYSTEM.OUT.PRINTLN ("Uppercase letters in a string have a total of" +bigcount+ ");Panax NotoginsengSyst
Install JDK 6 first
Sudo apt-Get install sun-java6-jdk
Then you need to set the default JavaProgramSudo Update-alternatives -- config JavaEnter the corresponding options as prompted, and set them to JDK 6.
The following settingsSudo Vim/etc/environment
Add the following two lines:Classpath =/usr/lib/JVM/Java
Original article:Http://www.soleilneon.com/blog/2009/02/jdk-6-update-12/
What is JDK? For every JavaProgramEveryone knows this very well. To develop a Java program, you must first install the Java development environment, that is, the Java Development Kit (JDK. Sun update
Java Study Notes-13. Create a window and program, and take notes-13
1. init () method: This method is called when a program is created for the first time and initialized for the first time.
Start () method: This method is called whenever a program piece enters the web browser and allows the program piece to start its general operations (the Special Program piece
ProblemYou want to effectively get an entity that is just used to show actions that are not updated. And you want to do it in a codefirst way.Solution SolutionsA very common behavior, especially a website, is simply to let the user browse the data. In most cases, the user does not update the data. In this case, you can improve your code performance by avoiding contextual caches and modifying traces, and you can use the Asnotracking method very simply.
JDK6 20th update Version-JDK 6 update 20 release , friends using JDK 6 can go directly to sun official to download the latest JDK usage. The detailed version of the JDK 6 Update for this release is jdk 1.6.0_20-b02 , perhaps due
I. Checklist (CHECKLIST)
Serial number
Event
Scheduled completion time
Actual completion time
No delay
Not completed
Complete
1
Login password encryption and decryption
16/04/06
16/04/06
Y
2
Table creation and IP and password write to database
16/04/07
N
3
Java Analog manual Telnet switch
16/0
Jdk620th update versions-JDK 6 Update 20 release and downloadNow,If you are using JDK 6, you can go to Sun to download the latest JDK. This releaseJDK 6 Update 20Detailed versionThe current number isJDK 1.6.0 _ 20-b02It may be due
follows1PublicClassCountrydatacontext:datacontext2{3Public Countrydatacontext (StringconnectionString)4:Base(connectionString)5{6}78Public tableCountries9{10Get11{12ReturnThis. Gettable();13 }14 }15 16 public Table Cities17 {18 get19 {20 return this. Gettable (); }22 }23} in the following code example, I will demonstrate several procedures:1. Create DataContext2, find the target to be up
: RIL(1) :[UNSL RIL]This is an UnSolicited response Message. The processing method is in RIL. java
ProcessUnsolicited ()Type: UNSOL_PROGRESS_INFO. According to the previous article "Analysis of the working process of Android 4.4 Kitkat Phone (v) _ MT (incoming call) process", the ProcessUnSolicited () method will be executed in RILJ, and the corresponding type is UNSOL_PROGRESS_INFO. RIL. java
Java EE Presumably everyone is not strange, it seems that now more popular to call it Java EE, no matter how the name changed, the core and the idea is unchanged. Learn the Java EE first to understand its specifications, let's look at its 13 specifications.1,JDBC (Java Datab
JDK 6 update 7 is released. Its internal version is 1.6.0 _ 07-b06, or 6u7 for short. An important feature of JDK 6u7 is:Visual VM1.0 released.
Java visualvm
Java visualvm is a tool with a visual interface for viewing detailed information about Java applications while they
Learn Java-6 from scratch. Execute operations repeatedly using loops and learn java-6
1. Use the for loop;
2. Use the while loop;
3. Use the do-while loop;
4. Early exit loop (break, continue );
5. Name the loop.
Program Nines: display the product of integers 1-and 9
1 package com.jsample; 2 3 public class Nines { 4
Java Virtual machine learning-in-depth understanding of the JVM (1)Java Virtual machine learning-slowly pondering the JVM (2)Java Virtual machine learning-slowly pondering the working mechanism of the JVM (2-1) ClassLoaderJava Virtual machine learning-JVM memory Management: In-depth Java memory area with Oom (3)
){ theOut.println (linecount++ + ":" +s); - } - Out.close (); - } +}(5). binary file read and write:1 ImportJava.io.*; 2 3 Public classbinaryfileoutput{4 //Output File name5 StaticString file ="Binaryfileoutput.out"; 6 Public Static voidMain (string[] args)throwsioexception{7 //wraps a string into a string input stream and then wraps the string input stream into a buffered character input stream8Bufferedinputstream in =
add new methods and fields in the new class.
11. extension class: the extension class fully embodies the inheritance relationship of is-a. Form: Class (subclass) extends (base class ).
12. Polymorphism: in Java, object variables are polymorphism. Java does not support multi-inheritance.
13. dynamic binding: Call the object method mechanism.
(1) The Compiler chec
initializationSummary:Finally, the book is pretty much the same .... It's not easy to shout, but finally one more thing. This book probably now only understand about half, after all, only looked at once, poor translation quality for the book's reading added a lot of difficulty. In addition, the book theory is more than practice, the code practice is not much, the book has a lot of prerequisite knowledge is assumed you already know, so suitable for a certain basis of people to see. Later there i
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.