The compilation mechanism in java
Unlike C and C++,java compiles the source text into binary code separately not a single executable application, which also determines the method java stores the references of other objects and links them when needs.Besides, the class binary code are coded with UTF-8, which is notable for all character support and compatible with ASCII for mainly the binary class consists of.
In the binary class, there are seven parts such as method area, class info area whcih describle all the information of the class itself and its references. In memory, there is only one copy of each class and its method, but there can exist several copy of data.The data and program are stored separately in memory.The string quoted with double quotes is actually a constant which is different from the string generated from the String() class.The latter is an instance object while the former has only one copy in memory.
The xsd(xml schema definition)
Both dtd(document type definition) and xsd are used to constrain the xml content. Every xml file can only has one dtd while has several schemas.And there are more datatypes in schema than dtd.
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">
- the default namespace is http://www.springframework.org/schema/beans,so the elements within that namespace are used without prefix in the xml file.
- xmlns:xsi , i think, is removeable.
- the schema location are listed with namespace and xsd file location.
java.io
There are two kinds streams in java,one is byte stream, the other is character stream.
- InputStream and OutputStream are abstact classes.
- ObjectInputStream and ObjectOutputStream are used to persist the object in memory.
- DataInputStream and DataOutputStream are used to read and write data types such as int,long,double.
- BufferedInputStream and BufferedOutputStream are second level stream which need InputStream and OutputStream as contrcut argument.
TreeSet and Comparator
TreeSet is class to add element in sorted way.The sort direction and method are implements in the Comparator.
分享到:
相关推荐
Inside the Java Virtual Machine Bill Venners $39.95 0-07-913248-0 Inside the Java Virtual Machine Acknowledgments Introduction Part One: Java's Architecture 1 Introduction to Java's Architecture Why ...
• incorporating a Java virtual machine implementation into an existing application written in languages such as C or C++ • implementing a Java virtual machine • understanding the technical issues ...
Interesting presentation about embedding java virtual machine into embedded linux systems.
Chapter 6 - Performance and the Java Virtual Machine Chapter 7 - Local Area Networking for Java Games Chapter 8 - Faster Math Chapter 9 - Game Databases and JDBC Chapter 10 - Java as a ...
What is a Java Virtual Machine?. 32 Developing software. 39 What is an integrated development environment?. 40 CHAPTER 3: Using the Basic Building Blocks. 43 Speaking the Java Language . 43 The ...
including the Java Virtual Machine configuration, the application server configuration (in our case, JBoss AS), the application code itself, and ultimately the operating system. This book will show ...
Java Virtual Machine Support for Non-Java Languages: Java SE 7 introduces a new JVM instruction that simplifies the implementation of dynamically typed programming languages on the JVM. Garbage-First...
, As a Lisp-style functional programming language, Clojure lets you write robust and elegant code, and because it runs on the Java Virtual Machine, you can take advantage of the vast Java ecosystem....
Anyone who knows software development knows about the Java Virtual Machine (JVM), it is responsible for interpreting Java byte code and translating it into actions. In the beginning, Java was the only...
including the Java Virtual Machine configuration, the application server configuration (in our case, JBoss AS), the application code itself, and ultimately the operating system. This book will show ...
Clojure is a young, dynamic, functional programming language that runs on the Java Virtual Machine. It is built with performance, pragmatism, and simplicity in mind. Like most general purpose ...
Writing truly concurrent software on the Java Virtual Machine just got a whole lot easier. The Akka Toolkit takes the sting out of coding for multiple cores, multiple processors, and even multiple ...
Virtual Machine for Java™ works, debugging techniques, and the diagnostic tools that are available to help you sol problems with Java VMs. It also gives guidance on how to submit problems to IBM.
Welcome to Spock: Up ... I’m excited and privileged to be your guide as you learn about the most innovative thing to happen to testing on the Java Virtual Machine (JVM) since the first release of JUnit.
Generic Code and the Virtual Machine 621 Restrictions and Limitations 626 Inheritance Rules for Generic Types 630 Wildcard Types 632 Reflection and Generics 640 Chapter 13: Collections 649 ...
The Clojure programming language is a dialect of Lisp that runs on the Java Virtual Machine and javascript runtimes. It is a functional programming language that offers great performance, expressive ...
The Java Virtual Machine Specification (DOWNLOAD) -------------------------------------------------------------------------------- Features Reference Guides - Java Platform All guides listed ...
The material doesn't depend on a certain platform of framework, but it focuses on Java Virtual Machine. This book doesn't cover topics about Kotlin to JavaScript feature and Kotlin/Native. It's a ...
Generic Code and the Virtual Machine 621 Restrictions and Limitations 626 Inheritance Rules for Generic Types 630 Wildcard Types 632 Reflection and Generics 640 Chapter 13: Collections 649 ...
ActionScript 1.0 runs in AVM1 (ActionScript Virtual Machine 1) in Adobe® Flash® Player. SpiderMonkey implemented the ECMAScript specification exactly and Flash Player AVM1 did not. The biggest ...