Java语言的功能

Simple

  • Java derives its syntax from C and object oriented features from C++.

  • If you are good in C and C++ programming then you can learn Java easily. Hence Java is Simple.

Secure

  • Java provides its own execution environment and hence do not allow any malicious program to access other parts of computer.
  • Java Virtual Machine (JVM) verifies the code before execution (sandbox security).

 Portable

  • Java is platform independent i.e. Write Once and Run Anywhere (WORA).
  • When java program is compiled a .class file (bytecode) is created. This .class file can run on any platform (linux, windows, mac). You just need JVM of that platform.

Robust

Java is called as robust because of following two features:

  • Automatic Memory Management
  • Automatic Exception Handling

Object-Oriented

  • Java is object oriented programming language same as C++.
  • It means focus on the data and methods that manipulate that data instead of taking care of procedures.

Multithreaded

  • Java supports multithreaded programming.
  • It allows you to write programs that do many things simultaneously.

Architecture-Neutral

  • Java is machine independent.
  • It was made with goal “write once; run anywhere, anytime, forever”.

Interpreted

  • Java enables the creation of cross-platform program i.e. bytecode.
  • This code can be executed on any platform that has JVM.

High Performance

  • Java bytecode can be easily executed on any machine for very high performance by using a just-in-time (JIT) compiler.

Dynamic

  • Java programs carry with them substantial amounts of run-time type information that is used to verify and resolve accesses to objects at run time.

Distributed

  • Java enables the creation of distributed applications which can be accessed on the internet.

Image Source: http://www.javatpoint.com/features-of-java

Simple

  • Java derives its syntax from C and object oriented features from C++.

  • If you are good in C and C++ programming then you can learn Java easily. Hence Java is Simple.

Secure

  • Java provides its own execution environment and hence do not allow any malicious program to access other parts of computer.
  • Java Virtual Machine (JVM) verifies the code before execution (sandbox security).

 Portable

  • Java is platform independent i.e. Write Once and Run Anywhere (WORA).
  • When java program is compiled a .class file (bytecode) is created. This .class file can run on any platform (linux, windows, mac). You just need JVM of that platform.

Robust

Java is called as robust because of following two features:

  • Automatic Memory Management
  • Automatic Exception Handling

Object-Oriented

  • Java is object oriented programming language same as C++.
  • It means focus on the data and methods that manipulate that data instead of taking care of procedures.

Multithreaded

  • Java supports multithreaded programming.
  • It allows you to write programs that do many things simultaneously.

Architecture-Neutral

  • Java is machine independent.
  • It was made with goal “write once; run anywhere, anytime, forever”.

Interpreted

  • Java enables the creation of cross-platform program i.e. bytecode.
  • This code can be executed on any platform that has JVM.

High Performance

  • Java bytecode can be easily executed on any machine for very high performance by using a just-in-time (JIT) compiler.

Dynamic

  • Java programs carry with them substantial amounts of run-time type information that is used to verify and resolve accesses to objects at run time.

Distributed

  • Java enables the creation of distributed applications which can be accessed on the internet.

Image Source: http://www.javatpoint.com/features-of-java

翻译自: https://www.thecrazyprogrammer.com/2014/06/features-of-java-language.html

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值