This commit is contained in:
Xingyu Wang 2021-10-05 10:51:50 +08:00
parent 7cd21137d9
commit 00402895b3
2 changed files with 97 additions and 99 deletions

View File

@ -1,99 +0,0 @@
[#]: subject: "8 reasons why I learned Core Java"
[#]: via: "https://opensource.com/article/21/10/why-i-learned-core-java"
[#]: author: "Shantam Sahai https://opensource.com/users/shantam-sahai"
[#]: collector: "lujun9972"
[#]: translator: "wxy"
[#]: reviewer: " "
[#]: publisher: " "
[#]: url: " "
8 reasons why I learned Core Java
======
Understanding Core Java gives you a significant advantage when learning
all of the related tools built on top of it.
![Learning and studying technology is the key to success][1]
Computer programming, also known as *coding *for short, is not about which language you use. It's about developing programming logic and learning to think like a programmer. The language you start with should be the one that helps you the most in this endeavor. So you have to ask yourself the question: "What do you want to do as a programmer?"
For example, if you want to work on Android app development, video game development, desktop GUI applications, or just general software development, I think learning Java is an excellent option. It's the language I chose, and it has made a whole world of programming available to me. In India, where I live, the average salary of a Java programmer is around 5.9 Lakhs per Annum (LPA) (it can be as high as 10 LPA, depending on your experience.)
Java is a vast language, though, with lots of frameworks and variants to choose from. _Core Java_ is the term the tech industry has developed to refer to the central components of the Java language—the thing that people use to write the frameworks and has developed the cottage industry around Java. I believe that Core Java is one of the most powerful skills you can acquire because understanding the basics of Java gives you a significant advantage when learning all of the related tools built on top of it.
Here are the top eight reasons I chose Core Java, and I think you should too:
### 1\. Java is an evolving programming language
Java has significant corporate backing, but the most important component in Java development is [OpenJDK][2]—the open source Java Development Kit. With a mission statement to promote and maintain open source, open innovation, and open standards, the OpenJDK community is committed to improving and maintaining an open source implementation of Java and its toolchain.
Innovations and conveniences get added with every release, making Java easier for developers and users alike. For instance, it was just in Java 11 that they added the ability to run .java files. Now, all it takes to run a single-file Java application is the `java` command, no compilation required:
```
$ java ./hello.java
Hello world
```
You can use Java to program applications for the web, mobile, or desktop. It's a highly versatile language. It has many interesting features such as dynamic coding, multiple security features, platform-independent characteristics, and network-centric design.
### 2\. Java anchors android app development
You can use Java to create Android apps. The Android market is enormous, and the demand for mobile programmers is only growing. Even if you're not interested in becoming a professional app developer, the ability to customize your mobile experience is a powerful one, and Java makes it possible.
And it's easier than you might think! Learning Core Java makes it easy for you to pick up Android development kits or frameworks that export to mobile platforms, like [Processing][3].
### 3\. Rich APIs make Java easy to use
Java's API (Application Programming Interface) includes classes, packages, interfaces, and more. Java has mainly three types of APIs: 
* Official Java Core APIs
* Optimal official Java APIs
* Unofficial APIs
An API makes programming easier because you can construct applications without knowing their inside implementations. In my experience, many companies prefer Java over other options because of the strength of the Java API.
### 4\. Open source libraries
There are nearly endless open source libraries for Java, including Maven, Guava, Apache Commons, Jhipster, and much more. You can copy, study, and share resources from these libraries. They make programming more accessible, faster, cheaper, and more educational.
### 5\. Java has reliable development tools
Java has some of my favorite IDEs (Integrated Development Environments), including [Eclipse][4], [NetBeans][5], [BlueJ][6], and IntelliJ IDEA. They provide debugging, syntax highlighting, code completion, language support, automated refactoring, and more. In short, IDEs play an essential role in Java's success and in your success as you learn it!
### 6\. Demand for Java developers in India
Giants like Google, Netflix, and Instagram use Java for backend development. Indian companies are actively looking to hire Java programmers to develop Android apps, new APIs, and microservices on the cloud. This demand translates to more job opportunities.
### 7\. The Java programming community is huge
The community of Java programmers is vast. It ranges from groups of beginners to experts. I have found the community to be welcoming and helpful when you ask for support. Most importantly, I've learned tons of new tricks by involving myself in online discussions. Being a part of the community has been a vital way for me to keep up with the latest trends, learn more about the language, and keep up with development.
### 8\. Java is platform-independent
The fact that Java is platform-independent makes it highly valuable. Java source code is compiled down to bitcode, which runs on the Java Virtual Machine (JVM). Any platform running a JVM (and all the major platforms do) can run your Java application. You write once and run everywhere! And this isn't just a theoretical position: Java has actually achieved this. You can write Java on whatever platform you develop on and deliver it to all your target platforms.
There are many resources online to learn Java, including a [cheat sheet][7] here on Opensource.com. There's also a great [online Java course][8] available in Hindi for free.
--------------------------------------------------------------------------------
via: https://opensource.com/article/21/10/why-i-learned-core-java
作者:[Shantam Sahai][a]
选题:[lujun9972][b]
译者:[译者ID](https://github.com/译者ID)
校对:[校对者ID](https://github.com/校对者ID)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://opensource.com/users/shantam-sahai
[b]: https://github.com/lujun9972
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/studying-books-java-couch-education.png?itok=C9gasCXr (Learning and studying technology is the key to success)
[2]: https://developer.ibm.com/components/open-jdk/
[3]: http://processing.org/
[4]: https://opensource.com/article/20/12/eclipse
[5]: https://opensource.com/article/20/12/netbeans
[6]: https://opensource.com/article/20/7/ide-java#bluej
[7]: https://opensource.com/downloads/java-cheat-sheet
[8]: https://www.learnvern.com/course/core-java-programming-tutorial

View File

@ -0,0 +1,97 @@
[#]: subject: "8 reasons why I learned Core Java"
[#]: via: "https://opensource.com/article/21/10/why-i-learned-core-java"
[#]: author: "Shantam Sahai https://opensource.com/users/shantam-sahai"
[#]: collector: "lujun9972"
[#]: translator: "wxy"
[#]: reviewer: "wxy"
[#]: publisher: " "
[#]: url: " "
学习 Core Java 的 8 个原因
======
> 在学习建立在 Java 之上的所有相关工具时,了解 Core Java 会给你带来很大的优势。
![学习和研究技术是成功的关键][1]
计算机编程(也被称为 *编码*)的重点不是使用哪种编程语言,而是发展编程逻辑和学习像程序员一样思考。你一开始使用的编程语言应该是在这一努力过程中对你帮助最大的语言。因此,你必须问自己一个问题,“作为一个程序员,你想开发什么?”
例如,如果你想从事安卓应用开发、视频游戏开发、桌面 GUI 应用,或者只是一般的软件开发,我认为学习 Java 是一个很好的选择。我选择的语言是 Java它为我提供了一个完整的编程世界。在我居住的印度Java 程序员的平均工资约为每年 59 万印度卢比LPA根据你的经验可以高达 100 LPA
不过Java 是一种庞大的语言有很多框架和变体可供选择。Core Java 是科技行业发展出来的术语,指的是 Java 语言的中心组件,人们用它来编写框架,并围绕 Java 发展了丰富的产业。我认为Core Java 是你能获得的最强大的技能之一,因为在学习建立在它之上的所有相关工具时,了解 Java 的基础知识会给你带来巨大的优势。
以下是我选择 Core Java 的八大理由,我想你也会认可:
### 1、Java 是一种不断发展的编程语言
Java 有重要的企业支持,但 Java 开发中最重要的组成部分是 [OpenJDK][2],这是个开源的 Java 开发工具包。OpenJDK 社区以促进和维护开发源码、开放创新和开放标准为使命,致力于改进和维护 Java 及其工具链的开源实现。
它的每一个版本都会增加创新和便利,使 Java 对开发者和用户都更容易。例如,就在 Java 11 中,他们增加了运行 .java 文件的能力。现在,运行一个单文件的 Java 应用程序所需要的只是 `java` 命令,不需要进行编译:
```
$ java ./hello.java
Hello world
```
你可以使用 Java 做 Web、移动或桌面的应用程序编程。它是一种高度通用的语言。它有许多有趣的特点如动态编码、多种安全功能、平台无关的特点和以网络为中心的设计。
### 2、Java 锚定了安卓应用开发
你可以使用 Java 来创建安卓用程序。安卓市场巨大,对移动程序员的需求只会越来越大。即使你对成为一个专业的应用程序开发人员不感兴趣,定制你的移动体验的能力也是很强大的,而 Java 使之成为可能。
而且,这比你想象的要容易得多!学习 Core Java 可以让你轻松地掌握安卓开发工具包或可以输出到移动平台的框架,如 [Processing][3]。
### 3、丰富的 API 使得 Java 易于使用
Java 的 API<ruby>应用编程接口<rt>Application Programming Interface</rt></ruby>包括类、包、接口等。Java 主要有三种类型的 API
* 官方的 Java Core API
* 最佳的官方 Java API
* 非官方的 API
API 使编程更容易,因为你可以在不知道其内部实现的情况下构建应用程序。根据我的经验,许多公司喜欢用 Java 而不是其他选择,就是因为 Java API 的力量。
### 4、开源库
几乎有无穷无尽的 Java 开源库,包括 Maven、Guava、Apache Commons、Jhipster等等。你可以复制、学习和分享这些库的资源。它们使编程更容易获得、更快、更便宜也更有教育意义。
### 5、Java 有可靠的开发工具
Java 有一些我最喜欢的 IDE<ruby>集成开发环境<rt>Integrated Development Environments</rt></ruby>),包括 [Eclipse][4]、[NetBeans][5]、[BlueJ][6] 和 IntelliJ IDEA。它们提供了调试、语法高亮、代码补完、语言支持、自动重构等功能。简而言之IDE 在 Java 的成功和你在 Java 学习中起着至关重要的作用!
### 6、印度对 Java 开发人员的需求
谷歌、Netflix 和 Instagram 等巨头都使用 Java 进行后台开发。印度公司正在积极寻找雇用 Java 程序员来开发安卓应用程序、新的 API 和云上的微服务。这种需求转化为更多的工作机会。
### 7、Java 有庞大的编程社区
Java 程序员的社区庞大,囊括了从初学者到专家的所有人。我发现这个社区很热情待人,当你寻求支持的时候,他们会给予帮助。最重要的是,通过参与在线讨论,我学到了大量的新技巧。作为社区的一分子,这是我了解最新趋势、学习更多语言和跟上发展的重要途径。
### 8、Java 是独立于平台
Java 是平台无关的这一点使它具有很高的价值。Java 源代码被编译成字节码,在 Java 虚拟机JVM上运行。任何运行 JVM 的平台(支持所有主要平台)都可以运行你的 Java 应用程序。你只需写一次就可以在任何地方运行这并不只是理论上的Java 实际上已经实现了这一点。你可以在你开发的任何平台上编写 Java并将其交付给你的所有目标平台。
网上有很多学习 Java 的资源,包括 Opensource.com 上有一个 [速查表][7]。还有一个很好的 [在线 Java 课程][8],可以用印地语免费学习。
--------------------------------------------------------------------------------
via: https://opensource.com/article/21/10/why-i-learned-core-java
作者:[Shantam Sahai][a]
选题:[lujun9972][b]
译者:[wxy](https://github.com/wxy)
校对:[wxy](https://github.com/wxy)
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
[a]: https://opensource.com/users/shantam-sahai
[b]: https://github.com/lujun9972
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/studying-books-java-couch-education.png?itok=C9gasCXr (Learning and studying technology is the key to success)
[2]: https://developer.ibm.com/components/open-jdk/
[3]: http://processing.org/
[4]: https://opensource.com/article/20/12/eclipse
[5]: https://opensource.com/article/20/12/netbeans
[6]: https://opensource.com/article/20/7/ide-java#bluej
[7]: https://opensource.com/downloads/java-cheat-sheet
[8]: https://www.learnvern.com/course/core-java-programming-tutorial