`
ymanyang
  • 浏览: 4819 次
  • 性别: Icon_minigender_1
  • 来自: 成都
最近访客 更多访客>>
社区版块
存档分类
最新评论

About Java Virtual Machine

    博客分类:
  • Java
阅读更多

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">

 

  1.  the default namespace is http://www.springframework.org/schema/beans,so the elements within that namespace are used without prefix in the xml file.
  2.  xmlns:xsi , i think, is removeable.
  3. 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.

  1. InputStream and OutputStream are abstact classes.
  2. ObjectInputStream and ObjectOutputStream are used to persist the object in memory.
  3. DataInputStream and DataOutputStream are used to read and write data types such as int,long,double.
  4. 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.

分享到:
评论

相关推荐

    深入java虚拟机(inside the java virtual machine)

    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 ...

    The Java. Native

    • 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 ...

    embedded_linux_java.zip_interesting

    Interesting presentation about embedding java virtual machine into embedded linux systems.

    Practical Java Game Programming

    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 ...

    java傻瓜编程系列英文版kindle

    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 ...

    JBoss 性能调优

    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 ...

    java7帮助文档

    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...

    Clojure for the Brave and True

    , 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....

    Introduction to JVM Languages

    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...

    JBoss AS 5 Performance Tuning.pdf

    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 High Performance Programming(PACKT,2013)

    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 ...

    Artima.Akka.Concurrency

    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 ...

    IBM Java JVM Diagnostic Guide

    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.

    Spock Up and Running

    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.

    Java2核心技术卷I+卷2:基础知识(第8版) 代码

    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 Joy of Clojure, 2nd Edition

    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 ...

    JavaSE-6.0-英文手册(2008/11/30_FullUpdate)

    The Java Virtual Machine Specification (DOWNLOAD) -------------------------------------------------------------------------------- Features Reference Guides - Java Platform All guides listed ...

    Mastering High Performance with Kotlin

    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 ...

    java.核心技术.第八版 卷1

    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 ...

    flash media server 4 帮助文档

    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 ...

Global site tag (gtag.js) - Google Analytics