Java Development The first step is to learn the relevant knowledge, to lay the foundation is the key, the following and small together I learn from the Java Foundation, together refueling!The Java direction consists of three main blocks:Java SE Desktop DevelopmentJava EE Web DevelopmentJava Me phone developmentJava Development tools include:NotepadJCreatorJBuilde
Java Basics
1. What are the features of object orientation?
1. Abstraction:
Abstraction is to ignore those aspects irrelevant to the current target in a topic, so that you can pay more attention to the aspects related to the current target. Abstraction is not intended to understand all the problems, but to select a part of the problem. Abstract: Process abstracti
installation is successful. 5. install Apache # tar xvzf httpd * // decompress the source package. # Cd httpd * // enter the installation directory. #./Configure -- prefix =/usr/local/apache -- enable-so -- enable-mod-shared = most -- enable-rewrite # make; make install // compile and install. Note: The -- enable-so option enables Apache to support the DSO mode. Note that we use the Apache2.0 syntax here. If your Apache version is 1.3, change it to -- enable-module = so. -- Enable-mod-shared =
, so no integer overflow occurs
Starting with Java7, you can also underline the literal, such as using 1_000_000 to represent 1 million, and the compiler will remove the underscore
In Java, the number of bytes occupied by all numeric types is platform independent, without any unsigned type (unsigned)
Double is twice times the numerical precision of float
Core Java (1), corejavaI. Xu
1. Software: a set of computer data and commands organized in a specific order.
Software Development: using development tools and computer languages to make software
2. Computer Language: language used for communication between people and computers
Machine language, assembly language, and advanced language
Advanced languages are divid
Java memory allocation involves the following areas:
1. Register: unable to control in the program
2. STACK: stores basic data and object references, but the object itself is not stored in the stack, but stored in the heap.
3. Heap: store data generated with new
4. static fields: static members defined by static in objects
5. Constant pool: stores constants.
6. Non-ram storage: Permanent storage space
profile environment.
# Ldconfig//Create dynamic link library cache file.
# javac-d. Helloworld.java//Compile test file.
# java HelloWorld//Run program test whether the installation was successful.
Five. Install Apache
# tar Xvzf httpd*//Extract source pack.
# CD httpd*//Enter the installation directory.
#./configure--prefix=/usr/local/apache--enable-so--enable-mods-shared=most--enable-rewrite
# Make;make Install//compile and install.
Descrip
fields (data) and methods (actions). If the instance domain is a basic data type, Java will give it a default value even if it is not initialized, but this is limited to the instance domain, only the instance domain, and only the instance domain.Java defines methods as similar to C. The parameters are still references.The package in Java is a large collection of classes and has a similar effect to namespac
Java learning from the beginning to the proficient (1)-General Linux technology-Linux programming and kernel information, the following is a detailed description. Java Learning Path (1), tools
I. JDK (Java Development Kit)
JDK is the core of the entire
1.Java Running development environmentSun released JDK1.0 (first edition) in early 1996. This version consists of two parts: the runtime Environment (JRE) and the development environment (JDK).(1) The operating environment includes: Core API, Integration API, user interface API, publishing technology, Java Virtual Mach
the end of the living space.{Int I = 1;{Int I = 100; // error! This definition is always not allowed in Java! The compiler will think that I has been defined}}2. Survival scope of ObjectsThe lifetime of an object is different from the basic type. When you use new to generate an object, even if you leave the braces, the object still exists.{String name = new Stin
short S1 = 1; S1 + = 1; since + = is a Java-language-defined operator, the Java compiler will treat it specially, so it compiles correctly.6. Can I store a Chinese character in char type? char-type variables are used to store Unicode encoded characters, and the Unicode enc
For a pure object-oriented language like Java, classes are the most basic abstract units and I have always hoped to write an article by myself, to better understand your understanding of classes and objects. Today, this wish is coming true! I do not know where to write it, because there are too many things designed in this aspect. When it comes to classes, it is not difficult to think of inheritance, polymorphism, encapsulation, and scope and lifecycl
20172330 2017-2018-1 "Java Program design" Fourth week study summary textbook study summaryThis week's content is more and more complex, including chapters fourth and seventh.
The fourth chapter introduces the definition and concept of class structure, and gives us a lot of examples to show the method and application of the custom class, and discusses the structure and use of the method definition:
instance = null;Public static synchronized Singleton getInstance (){// This method is better than above. You don't need to generate objects every time. It's just the first time.// Generate instances during use, improving efficiency!If (instance = null)Instance = new Singleton ();Return instance ;}}Other forms:Defines a class. Its constructor is private and all methods are static.It is generally considered that the first form is more secure.
1. What a
instance = NULL;Public static synchronized Singleton getinstance (){// This method is better than above. You don't need to generate objects every time. It's just the first time.// Generate instances during use, improving efficiency!If (instance = NULL)Instance = new Singleton ();Return instance ;}}Other forms:Defines a class. Its constructor is private and all methods are static.It is generally considered that the first form is more secure.
1. What a
Java entry notes (1): Tossing HelloWorld and javahelloworld
HelloWorld: the first step to learn every language. Some people say that these years of programming career is to learn the HelloWorld of various languages. Currently, my company uses Java as the main development language. I have been performing language conversion for more than half a year. HelloWorld is
Java compiler and compiles the specified Java source text. Use format: "Javac java source Files", such as Javac Hello.java|-db:jdk7 comes with a lightweight database, named Derby.|-include: The interface text that holds the calling system resource.|-jre:java the operating environment.|-lib: Core Class library.|-src.zi
1. Java runs on a virtual machine
Java source code is not compiled into common machine code. It is translated into code that can be executed by a virtual machine. A Java interpreter finally executes the code. There is no connection process, and some classes are dynamically loaded as needed;
2.
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.