Java is one of the most popular programming languages, often used for building web and enterprise scale applications. This collection of tutorials will help you get started with the basic concepts in Java.
Java是最受欢迎的编程语言之一,通常用于构建网络和企业级应用程序。这组教程将帮助你开始了解Java的基本概念。。
Java Language Basics
Java语言基础知识
Before learning about classes and objects, let’s start with the basic syntax of the language.
在学习类和对象之前,我们先从语言的基本语法开始。
Java OOP
Java OOP
Next, let’s dive into the world of object-oriented programming, with practical Java examples.
接下来,让我们通过实际的Java例子,深入了解面向对象的编程世界吧!。
-
Java Classes and Objects -
Concrete Classes -
Access Modifiers -
Constructors -
A Guide to Creating Objects -
Abstract Classes -
Interfaces -
Guide to Inheritance -
Inheritance and Composition (Is-a vs Has-a relationship) in Java -
The this Keyword -
The super Keyword -
Method Overloading and Overriding -
The static Keyword -
Java Enums -
The final Keyword
Java Strings
Java 字符串
Strings are a common data type in Java, representing text. Let’s have a look at how to create and use String objects.
字符串是Java中一种常见的数据类型,代表文本。让我们看看如何创建和使用String对象。
Java Exceptions
Java 异常情况
Exceptions are abnormal behaviors during the execution of a program. Let’s understand what Java exceptions are and how they can help us write less error-prone code.
异常是程序执行过程中的异常行为。让我们了解一下什么是Java异常,以及它们如何帮助我们写出更少错误的代码。
Java Arrays
Java数组
It’s time to have a look at our first data structure in Java – arrays.
是时候看看我们在Java中的第一个数据结构了–数组。
Java Collections
Java集合
A more complex type of data structure are collections, which, compared to arrays, have a dynamic size.
更复杂的数据结构类型是集合,与数组相比,集合具有动态大小。
Java Streams
Java流
Finally, we get to Java Streams – which are not data structures, but wrappers around data sources and allow us to process data more efficiently.
最后,我们来到了Java Streams–它不是数据结构,而是数据源的包装物,让我们更有效地处理数据。
Java IO
Java IO
Look at ways to interact with files and other data input/output methods in Java.
研究在Java中与文件和其他数据输入/输出方法互动的方法。
Java Development Environment
Java开发环境
It’s important to understand the fundamentals of how the Java Virtual Machine and other development tools work.
了解Java虚拟机和其他开发工具的工作原理的基本原理是很重要的。
Of course, there’s a lot more to learn about Java programming, and the development tools and APIs available are changing every day. But with a strong foundation of the basic concepts, you can jump in to building something and always continue learning.
当然,关于Java编程还有很多东西要学,而且可用的开发工具和API每天都在变化。但是,有了基本概念的坚实基础,你就可以跳进去建立一些东西,并一直继续学习。
For more tutorials and examples of problem-solving in Java, also have a look at the Java category on the site.
要了解更多关于用Java解决问题的教程和例子,还可以看看网站上的Java类别。