I have been using C ++ for a long time, but I am not familiar with Java. I started to learn such a language from the beginning for Android development. Record your learning process in your blog.
First, build the development environment. Take
Like a conscious creature,ProgramThe world must be controlled during execution and choices must be made. In Java, you need to use control statements to make a choice.
Simply put, a program is to execute the commands specified by the program
Java judgment and loop statements:Objectives of this chapter:1: MasterProgramThree types2: master the use of the selected statement3: understand the use of loop statements4: master the use of the break continue keyword.------------Sequence
1. Upward TransformationConvert the object of the parent class to a subclass object. Automatic conversion.If its subclass is used to instantiate the parent class, if the called method is overwritten by the quilt class.It must be a method that has
1. What is a set? :
Java to facilitate object storage. A set is generated.
Therefore, a set is only used to store objects. The length of the set can be changed. You can also store different objects. Note the following:
List List = new
Differences Between I ++ and ++ in Java!
Public static void Method1 () {int x = 5; system. out. print ("x ++ 1 + x ++:"); system. out. println (x ++ 1 + x ++); // 5 + 1 + 6} public static void method2 () {/*** the execution sequence of method2 and
1. What is generics:Generic: the new feature of JDK 1.5 is an extension of the Java language to support the creation of classes that can be parameterized by class. Any type can be put in the collection before jdk1.5. This results in various forced
Number classification knowledge POint Description
1. download and install the Java SDK in the Development Environment
2. environment variable configuration (path and classpath)
3. Naming rules for basic programming identifiers
4. Java Data Types
5
The methods in the stringbuffer class mainly focus on changing strings, such as append, insert, and delete. This is also the main difference between the stringbuffer and string classes.
1. append Method
Public stringbuffer append (Boolean B)
This
Java class loading mechanism
The project was dizzy due to a problem involving class loading. Fortunately, it was solved later. It seems that it is necessary to understand some underlying JVM mechanisms. The excerpt is as follows:Source:
1. How to understand input and output streams?
This is a piece that is hard to understand when I was learning Java Io. We must take the input and output stream as a reference object: We take the memory as a reference object, and all the data
Proxy mode:
1. Proxy mode roles:
1) The agent.
2) agent. Inherits the same parent interface.
2. Role of proxy:
1) add some same functions for methods with the same interface as existing methods.
2) The proxy class is dynamically generated during JVM
Java divides storage into six classes. Register, stack, heap, static storage, and constant storage respectively) and non-random access storage zone (non-Ram ).
1. register (register ). registers are different from other storage areas. They are
Fully Understand Java multithreading-Inter-thread communication (1)Author: hengshanxi Source: Unknown (14:51:45)
Inter-thread Communication1. Several States of the threadA thread has four States. Any thread must be in one of these four states:1)
Import java. Text. collator;
Import java. util. arrays;
Import java. util. comparator;
/*** @ Author Leon* Chinese sorting is performed in the order of Chinese pinyin,* You do not need to write algorithms to sort data in Java,* The sort method
Import java. Io .*;
Public class converttoprintstring{// Convert lowercase to uppercase and lowercase to lowercasePublic static void main (string [] ARGs) throws ioexception{Inputstreamreader reader = new inputstreamreader (system. In
/*** Enumeration usage** @ Author jiqinlin**/Public class testenum {/*** Normal Enumeration** @ Author jiqinlin**/Public Enum colorenum {Red, green, yellow, blue;}/*** You can add attributes and methods like ordinary classes for enumeration. You can
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