Chapter 1 Java programming overview, Chapter 2 java programming
Java was born in 1996
1.1 Java programming platform
Java is not just a language. Java is a complete platform:
1.2 key
JAVA (1), JAVA (
I have been busy with other things for a few days. Now I start to learn JAVA. I will take the book "JAVA from getting started to proficient" as a teaching material and record the learning process of JAVA from this
"))
◆ Java_session: you can use it to return a session handle, for example:
$session = java_session();
◆ Java_values: you can use it to evaluate an object and extract its content (only when this operation is possible), such:
$result = java_values($calcinstance->addAB($term_1,$term_2));
To use these functions, your PHP application must contain the corresponding PHP class. The most important class is Java. inc, which has a
use of annotations, we can divide annotation into three categories:1.JDK built-in system annotations2. Meta-annotations3. Custom annotations
system built-in standard annotations:The syntax of annotations is relatively simple, except for the use of the @ symbol, which is basically consistent with the native syntax of Java, with three standard annotations built into the javase, defined in Java.lang:@Ov
Java (1)-interfaces, inheritance and polymorphism, java (advanced tutorial)
The previous "class and object" was removed from the home page and asked if it was suspected that the Notes could not be posted on the home page. Alas, I felt sorry for myself for a few seconds. It seems that my level is not yet in place, all are written as "Notes. Alas, at present, there
Java basics-generic 1 and java Basics
The use of generics can make the type name as a parameter in the class or interface definition, just like a common parameter, so that the defined type is more universal.
Advantages of generics:
Strict type check for compilation
The java com
(assuming a value of 1) in its own local memory a. When thread A and thread B need to communicate, thread a first flushes its local in-memory modified x value to main memory, when the X value in main memory becomes 1. Then, thread B goes to main memory to read the x value of the updated thread A, at which point the X value of the local memory of thread B also becomes 1
1. Java background, features, versions, and Java Development Tools
Applet browser appletviewer: Java small application BrowserSyntax: appletviewer [Options] URLFor example, the helloapplet.html file under the current directory:Appletviewer helloapplet.html
Java
better than! Ctrl + 1. Haha. How nice it would be if Microsoft could do this!
In this case, the database is added and the check code is correct. The compilation error is prompted:
Access restriction: The type AxisFault is not accessible due to restriction on required library D: \ 2000 \ Java \ Axis2 \ lib \ axis2-kernel-1.4.1.jar
Now I am dumb, so I have to hurry to google. In the past two days, google.c
java MyProg >log.txt
5) The processor that can change non-default catch exception
Thread.setDefaultUncaughtExceptionHandler{
new Thread.UncaughtExceptionHandler(){
public void uncaughtException(Thread t, Throwable e){
//save info to file
}
}
}
6) If you want to see the class loading process, you can invoke the-verbose flag to start the Java
introduce these polymorphism before talking about subtype polymorphism.
Forced Polymorphism
Forced polymorphism implicitly converts a parameter to a type that the compiler deems correct in some way to avoid errors. In the following expressions, the compiler must determine what the binary operator '+' should do:
2.0 + 2.0
2.0 + 2
2.0 + 2
The first expression adds the operands of two double values. This is s
Crazy Java handout Reading Notes (1), java handout Reading Notes
Instructor Li Gang's crazy Java handout (the third edition) is my book of enlightenment. I read it three times before and after, and each time I have a new understanding.
In the next period, we will record some classic knowledge.
Java set (1): Java set Overview
1 Overview
Java provides a rich collection framework, which contains many interfaces, virtual classes, and implementation classes. These interfaces and classes provide rich functions to meet basic aggregation requirements. Is the overall struc
clone method and are set to public, which can be used to create a new array containing copies of all the array elements.6.3 Interfaces and callbacksCallbacks can indicate the actions that should be taken when a particular event occurs.Take the construction timer as an example:In many programming languages, a function name can be provided, and the timer calls it periodically. However, classes in the Java Standard Class library take an object-oriented
run to see if the JDK was installed successfully.Step: 1, open the command line, the path switch to the Java installation path in the bin directory. Run the Javac command to install successfully if the content appears.If an internal or external command is not available, a program or batch file that is not running, fails to install, check that the path entered is correct, and that the downloaded installatio
1. java programming basics and java basic programming exercises
1. the operating mechanism of Java. The types of advanced computer programming languages include compilation and interpretation. Java is the combination of these two
information in the annotation type is accessed and processed only by a matching tool. This article will cover the standard annotation and meta-annotation types, and the tools that accompany these annotation types are the Java compilers (and of course they are handled in a special way).What is metadata (meta data):Metadata is translated from the word metadata, which means "data about data".There are many functions of meta data, such as: You may have u
corresponding base type.About arrays:* Java ensures that the array is initialized and cannot be accessed outside of its scope.* This range check is at the expense of a small amount of memory overhead on the array and runtime subscript checking.The following code is legal in C + +, but cannot be written in Java:{int x = 12;{int x = 96; Illegal}}The practice of hiding in a larger scope in C + + is not allowe
1. JAVA programming ideology-getting started with objects
Object entry
If I have learned JAVA and have not read the book JAVA programming ideology, I am sorry to say that I have learned JAVA. In view of this, to is busy, secretly reading this legendary ox book.
Object-Orient
), object references (reference types, which are not equivalent to the object itself and are implemented according to different virtual machines). It may be a reference pointer to the start address of the object, or it may point to a handle representing the object or other location associated with the object, and the ReturnAddress type (the address of a bytecode directive).The 64-bit length of long and double data takes up 2 local variable space (slots), and the remaining data types occupy only
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.