摘录


Both Java vs Go deal with totally different niches.
Go’s pointers are just limited to arrays and objects, they can offer pointers to any types of values.
Go doesn’t use exceptions to display events like run-time and end-of-life, instead, it uses errors to display such events.
Go is basically compiled to machine code, unlike
Java supports omission checks to handle and trap errors.
To provide first-class functions and does not the conversion of implicit type.
Go provides garbage collection. However, like Java, it does not support a full GC.
Function overloading is not allowed on Go. It is necessary to have unique names of Methods and functions.
Java has no primitive unsigned numeric types. This is what makes Java unsuitable for programming of low level.
Namespace in Java does not tell the source file location.
Go provides built-in data types like maps and slices, some generic functions like copy and append etc.
Java only allows source files that have a public class inside it.
Go provides lightweight thread routines which run on OS threads.
Java is ranked 18th on the list of best programming languages. Whereas, Go is ranked on 8th.
Go supports complex numbers as it has a built-in support for that.
Java vs Go both have a different take on polymorphism. Java allows polymorphism by default. Whereas, Go does not.
The API of Go is completely handled by Google.
Java API is controlled by an open community process.
Java uses virtual methods by default.
Java does not allow operator overloading, which makes it more hassle-free.

点评

NULL

原文

点击这里查看原文

其它

本帖内容由21QA云收藏工具自动生成,欢迎使用。

系统消息 若觉得内容不错,请点击左上角的"赞"图标,以优化网站的内容呈现。 另外,请及时验证注册邮箱,否则收不到21QA发出的红包。 官方Q群:250203055

asked 09 Apr, 16:18

%E8%B7%AF%E4%BA%BA%E7%94%B2's gravatar image

路人甲
131502581596

Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link: [text](http://url.com/ "title")
  • image: ![alt](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×653
×19
×4

question asked: 09 Apr, 16:18

question was seen: 21 times

last updated: 09 Apr, 16:18

powered by O*S*Q*A

粤ICP备14040061号-1