Try to talk about static methods and static properties from the point of view of the JVM's memory management principles, please correct me where it is wrong. (joezheng123.javaeye.com/blog/264695)The JVM's memory is divided into two parts: Stack and
One, static variable
The member variable decorated by the static keyword is called a static variable, and before we talk about the difference between a member variable and a local variable, what is the difference between a static variable and a
Java Web code generator, which focuses on Java Web project general purpose code generator and Java Web Code Generator
This project is a general code generator for the javaWEB project. jsp, js, And java files are generated based on database tables
2.6.3 static keywordGenerally, when creating a class, we will point out the appearance and behavior of the Class Object. Unless you use new to create an object for that class,Otherwise, you will not actually get anything. The data storage space will
Java.langClass IntegerJava.lang.ObjectJava.lang.NumberJava.lang.Integerall implemented interfaces:Serializable, comparable
Public final class IntegerExtends numberImplements ComparableThe Integer class wraps the value of a primitive type int
Static, so first, let's take a look at what static can modify:The following test shows that static can be modified:1. Statement Block2. Member variables (but local variables cannot be modified)3. Method4. Interface (internal interface)5. Class (only
In the class file, "constant pool" is the most complex and most noteworthy content.Java is a dynamically connected language, the role of a constant pool is very important, in addition to the constant pool contains the various basic types defined in
Java language definition:
Java is an object-oriented programming language that can compose cross-platform applications .
Java technology, with its versatility, efficiency, platform portability and security, is widely used in PCs, data
A Introduction to Java Technology system:The Java technology architecture consists of the following components:
Java programming language
Java virtual machines on a variety of hardware platforms
class file format
Java API Class
Java Virtual Machine (JVM) is a hypothetical computer that can run Java code. As long as the interpreter is transplanted to a specific computer according to the JVM Specification Description, it can ensure that any compiled Java code can run on
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.