Package (packages)Naming conventions for package names: 1, lowercase 2, at least one level of directory 3, domain inversion writingPackage Baidu;Package com.baidu.www;Class (classes)----- Large Hump MethodNaming conventions for class names: capitalize all words in the first letterClass MobileClass TestmobileInterface (interface)Naming conventions for interfaces: Capitalize all words in the first letterInterface Animal;Method (Methods)Naming conventions for methods: first letter lowercase, initia
Start from difficulty 1:1, Remove specified Elem from unsorted array:2 pointers, one was to iterate all the elements in the array, the. Increase if current value was not equal to specified element.2, Remove duplicates from sorted Array:still 2 pointers, compare current value with Previous.3, Remove 3rd duplicate from sorted Array:on 2, with another var to store the appearance number.4, Remove duplites from sorted linked List:prev Curr, then pay attention to NULL head input.[
Java coding SummaryI. Principles of practice1. Save the page file in the same format as the statement.If you declare 2. Whether it is get, post or Javascript, the browser submits the request in the encoding format specified by the page file.3. Javascript methods such as encodeuri and encodeuricomponent use UTF-8 format to encode dataIi. HTTP and Servlet specificationsA. http protocol1. Get according to the
software system structure.The tighter the connection between the modules, the stronger the couplingThe module's independence is worse.The coupling between modules depends on the complexity of the interface between modules, the mode of invocation and the information transmitted. Coupling and cohesion are the two qualitative standards of module independence, when the software system is divided into modules, it is possible to achieve high cohesion and low coupling, improve the independence of mod
The IDE I'm using is idea, and the places where eclipse may be set up are different1. Encoding of source filesWhen writing. java files in various Ides, there is an encoding that the IDE stores files on the machine in this encoding format, such as my settings, to set the S.java file to GBK format2. At compile time, Javac will read the file in the specified encoding format and then compile it into Unicode format.For example, I joined encoding GBK this s
Java BASICS (20) IO streams (3) and java basics io streams
Here are some of the knowledge points and code I summarized in my previous class. Most of the notes I think are very good and classic, sincerely hope that these will help those who want to learn!
It is inconvenient to upload code by module. There are also many
Java basics and java Basics
This is a full set of Java knowledge I have prepared in my previous lectures. It is applicable to beginners and intermediate and advanced students. You can download it. I think it is more systematic and comprehensive, it can be up to 90% of the le
Java basics --- reflection mechanism, java basics ---1. Is java a Dynamic Language?
Generally speaking, dynamic language means that the program structure or variable type can be changed while the program is running. From this point of view,
Java basics-GUI programming (2), java basics gui Programming
I. event listening Mechanism
-- Event Source: the graphical components in the awt or swing package, that is, the components in which the event occurs.
-- Event: An operation performed by the Event user on the component.
-- Listener: Listener is responsible fo
: What is development* Process of software production* C: What is software development* Build software with development tools and computer language* D: What is computer language* A special language for communication of information between people and computers* E: Classification of computer languages* Machine Language:* Machine language is a computer language directly expressed as a binary code instruction, which is a string of code consisting of 0 and 1, which have a certain number of digits and
Java syntax basics 1: java syntax Basics
Basic Java code format
All program code in Java must exist in a class. class is defined using the class keyword. Some modifiers can be provided before the class. The format is as follows:
M
Java BASICS (14) Set (1), java basics set
Here are some of the knowledge points and code I summarized in my previous class. Most of the notes I think are very good and classic, sincerely hope that these will help those who want to learn!
It is inconvenient to upload code by module. There are also many things, and they
[Java Basics] common knowledge accumulation (1), java basics Accumulation
1. Difference Between = and equals: difference between null and ""
2. 15 top-level Java multi-thread Interview Questions and answers
(1) Use of join in a thread
In many cases, the main thread generates
(); }(3) One class inherits the inner class of another class, because the superclass is an inner class, and the construction method of the inner class cannot be called automatically, so it is necessary to explicitly call the superclass's construction method in the subclass's constructor. Next Example:Class C extends A.b {C () {New A (). super ();This sentence implements a call to the inner class construction method. }}The construction method can also be written like this:C (a A) {A.super ();}//
Java basics --- memory analysis, java basics ---
Java concurrency isShared Memory Model(Rather than the message passing model), the common state of the program is shared between threads, and the public state in the write-Read Memory is used between threads.ImplicitProceedCom
Java basics 10-interfaces, Java basics-interfacesJava basics 10-interface 1, interface definition and instance
1/* 2 abstract class AbsDemo 3 {4 abstract void show1 (); 5 abstract void show2 (); 6} 7 8 when the methods in an abstract class are abstract, in this case, the abs
Java basics-enumeration details, java basics Enumeration
Before JDK1.5, JAVA can define new types in two ways: classes and interfaces. For most object-oriented programming, it seems sufficient to have these two types, but it is not suitable in some special cases. For example
Java concurrency basics and java concurrency Basics
Concurrency is the ability to run multiple programs in parallel or run multiple parts of a program in parallel. If a time-consuming task in a program can be run asynchronously or in parallel, the throughput and interactivity of the entire program will be greatly impro
Java syntax BASICS (Summary), java syntax basics Summary
1. Keywords: words with special meanings given by a language.
Reserved Words: Actually, words that have not been given a special meaning but will be used in the future.
2. identifier: it is actually a custom term in the program. For example, class name, variable
Java BASICS (8) Object-oriented (3) and java basics object-oriented
Here are some of the knowledge points and code I summarized in my previous class. Most of the notes I think are very good and classic, sincerely hope that these will help those who want to learn!
It is inconvenient to upload code by module. There are a
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.