Git Product home page Git Product logo

java's Introduction

java

一、java程序开发

  • 创建、编辑java源文件,后缀名为.java
  • 使用java编译器来编译java源文件生成字节码文件,后缀名为.class
  • 使用java虚拟机来执行生成的字节码文件,完成java程序要实现的功能

今天上课老师提出了一个问题:为什么java是跨平台的语言?

  1. 因为java平台是由java虚拟机和java应用编程接口构成,且java程序的跨平台主要指的是字节码文件可以在任何具有java虚拟机的电子设备上运行
  2. java语言是完全统一的版本
  3. 由编译器产生的字节码是与平台无关的
  4. java虚拟机隐藏了不同平台的差异,保证了字节码文件运行的正确性 (附上我的一张思维脑图,上面有java概念和部分java的数据类型,可以帮助理解,这张图我直接放在这个目录下)

java's People

Contributors

welkin-qing avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.