. Multiple words, the first letter of each word should be capitalized;Example: HelloWorldB: Variable name, method name: First letter lowercase, multiple words, start with the second word, capitalize the first letter;C: Package (folder) Name: All lowercase, even if multiple words, all letters all lowercase;D: Constant Name: All letters uppercase, multiple words, in the middle with an underscore _ separated;Example: Student_age3. Class name and variable name use "noun", method name with "verb"Iden
JAVA thread Learning (2), java thread LearningThis is a project with three classes.First:Package com;// Military thread// Simulate actions of both sidesPublic class ArmyRunnable implements Runnable {// Volatile ensures that the thread can correctly read the value written by other threads// VisibilityVolatile boolean keepRunning = true;@ OverridePublic void run ()
Java learning Summary (1), java learning Summary
Everything in Java is an object.
Create an object type
Class ATypeName {/* Class body goes here */}
Class (Object Type) has two types of Elements
Field (data member): any type of object can communicate with it through referen
for a job will not lose the lose.
Then, if you've only learned Java Web development, it's easy to get started with Android development (hands-on experience tells me it doesn't take one months). However, do not rule out some Java Web programmers have become accustomed to the use of framework development, Java Basic knowledge has forgotten a clean, this turn to w
Java learning notes (4): memory management, java learning notes
In terms of memory, Java itself has a spam mechanism, which seems to be negligible on the surface, but if we understand it, it may sometimes get twice the result with half the effort.
So I took some time to sort
Java learning diary 9-exception, Java learning diary 9-
Exception)
1. What is an exception?
Exceptions are errors in the program, such as array out-of-bounds and NULL pointer access. In Java, everything is an object, and exceptions are no exception. All exceptions are an ins
In the Java learning we will inevitably make some logic errors, grammatical errors, and some running errors, for the poor English people, on the following 2 common words, help us to improve the use of software coding speed and code debugging, more convenient to find errors, Know that 1 in the key can effectively avoid some grammatical errors, such as these keywords are not used to do variable names, or will
Java learning notes 2 object-oriented (on), java learning notes
Class and Object
A class is the abstraction of a batch of objects. It can be understood as a concept. An object is a specific entity. Class and object are the core of object-oriented.
A class defines the characteristics of multiple instances. A class does
Java learning notes 10 (Object-Oriented 3: interfaces) and java learning notes
Interface:
It can be understood as a special abstract class.
An interface is a set of functions. It can be viewed as a data type and is a more abstract "class" than an abstract class"
The interface only describes the methods that should be a
Zero-basic learning java: variable (2), Basic Learning java variable
The concepts and data types of variables are introduced above. Now we will introduce the conversion between several data types of variables.
1. Automatic type conversion: the data type with a small capacity is automatically converted to a data type wi
Java learning notes thread (1), java learning notes threadThread (1) I. Thread definition in composition:
1. Create tasks and threads:
1 TaskThread task = new TaskThread (); // create task 2 Thread taskThread = new Thread (task); // create the corresponding execution Thread Based on the task
2. Implement the Runnable i
Learn about the 20 English-language websites that Java should go to (Java Learning website)1.http://www.javaalmanac.comThe online version of the Java Developer Yearbook book. This is a good place to get a quick look at the usage and sample code of some Java tricks.2.http://w
Subject: Senior 4. Currently, I am deeply immersed in java and have unknown prospects. I want to ask for advice. Senior 4: I am deeply immersed in java and have unknown prospects, java is not a good language. The syntax is complex, concurrent processing is cumbersome, and functional programming progresses slowly. However, the subject is obviously not interested i
Common Command Management Wang Coli (Star stars) in Java learningA. Common DOS commands in windowWhere to operate DOS commands:Win7---> Start----"All Programs---" accessories----"Command promptWin7--> Start---"Run----" Input cmd1.1 Drive Symbol Switching:Disk Fu Yi + colon format: drive letter:Example: Want to drive from C to DC:/user/xxxx D:1.2 Working with foldersDir: Displays all files and folders in the current folder.CD path: Enter to the spe
Deep Learning of java enumeration applications and deep learning of java Enumeration
I. Differences between enumeration and static Constants
When talking about enumeration, let's first think about how it is different from the constant modified by the public static final String.
Two advantages of enumeration are as foll
Learning java from scratch (2) classes and objects, learning java objects from scratch
Object-oriented refers to dividing a problem transaction into various objects. The object is created not to complete a step, but to describe the behavior of a thing in the whole process of solving the problem.
A class is the abstract
Java Learning (6), loop structure, and java learning loop structure
1. while Loop: Also known as "When Type Loop"
While (loop condition ){
// Cyclic operation statement
}
Key points: ① judge first and then execute ② the number of cycles is not fixed ③ avoid endless Loops
Example: enter a positive integer and output it
Java series Learning (6)-array and java series learning Array
1. Method:
(1) Definition:
Code that completes a specific functional block, also called a function in some languages
(2) format:
(3) method Overloading
[In the same class, the method name is the same, the parameter list is different, and it is
JAVA Learning (1): Java introduction, configuration and Setup of its platform and development environment, and java ConstructionJava introduction, platform, and development environment configuration and Setup1. Introduction to JavaJava is an object-oriented programming language with many features such as cross-platform
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.