Learning Java characteristics (Java in a Nutshell 6th)

本文介绍了Java语言的主要特性,包括其跨平台性、字节码结构、安全性限制等,并讨论了如Scala和JRuby等其他语言如何与Java交互。此外,还提到了Java的一些常见批评,比如语法冗余和缺乏快速更新等问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Java characteristics:

  1. Java .class files are machine-independent, including the endianness.
  2. Java .class files are not optimized
  3. .class files comprises "bytecode"
  4. different from "interpreted languages" in an additional step javac (source file cannot be interpreted directly)
  5. language "Scala" can produce .class files with non-java language, languages like "JRuby" can interprete ruby & run in JVM
  6. Java cannot guarantee 100% security
  7. Java always pass by value
  8. Java do not support full multiple inheritance
  9. Java has no operator overloading
  10. Java is statically typed
  11. Java has namespaces
  12. Java is multithreaded

Java Criticisms:

  1. Overly verbose (grammatically redundant)
  2. Java is not changing fast like C#, is not supporting new common features
  3. Java is fast now, sometimes beats C/C++
  4. desktop & GUI components are insecure, leads to a pushback of Java 8
  5. not freewheeling, that's why OpenJDK is there

 

转载于:https://www.cnblogs.com/sansna/p/5354593.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值