如何学习java

Java is application layer programming language and is not very difficult to learn. It does not require any prior programming experince to learn java coding. Learning Java can be really easy if you already know a programming language. The fastest way to learn java is to start learning by doing it.

Java是应用层程序语言,它并不难学,不要求你有编程经验。如果你已经有一门编程语言经验那么学习java对你来说就非常简单。学习java最快的方式就是边做边学。

Step 1: Make Up Your Mind – Ignore the Critics

第一步:提升你的思想–无视别人的批评

Not every person loves Java programming and hence, they will try their level best to deter you from learning the language. It is true that the world of programming is flooded with different competing languages and it is not really possible to pick the one which is the best. A language which works perfectly for you might not serve the same purpose for someone else.

不是每个人都喜欢java编程因此他们需要去尝试以决定他们要学哪一门语言。世界上的编程语言有很多我们很难说那种语言是最好的。一门语言能很好的应付你的工作但是却不一定符合别人的工作目的。

Hence, instead of paying attention to what the critics of Java have to say, you must focus all your attention on learning the language you picked.

因此,与其将注意力放到别人对java的批评上,不如认认真真学习你说选择的这门语言。

Step 2: Install Java and Eclipse IDE

第二步:安装java 和 Eclipse 开发环境

Although, it is very much possible to learn Java simply by installing the Java SDK but the learning curve in this case is bound to be real slow. When Java SDK is combined with an IDE, it provides for an integrated development environment which will take care of all your needs and will help you learn quickly and more effectively. And among the different IDEs, Eclipse is undoubtedly the best and can be downloaded for free.

虽然简单地安装java SDK可以学习java,但是这样学习java是非常慢的。java SDK结合IDE就能提供一个集成开发环境来帮助你快速,高效编程。在众多的IDE中,Eclipse无疑是最好的而且还可以免费下载。

Steps to install Java SDK
安装java SDK

Steps to install Eclipse
安装Eclipse

Step 3: Learn Java Fundamentals

第三部:学习java基础

The most logical way in which you can start learning Java is to start with the fundamental concepts. In order to learn the basics of this programming language, you can make use of a free tutorial or can simply download a good e-book. The whole idea is to understand what core Java is all about before moving on to the advanced levels.

学习java最理智的方法就是先去学习基础概念。你可以通过免费的教学或者下载一本好的电子书来学习java基础。在学习更高级的java知识前去理解java的核心是必要的。

Some of the key concepts you must learn are
你必须学习的重要概念
Object Oriented Programming Concepts including encapsulation, abstraction, inheritance, containment and polymorphism.
Why Java is Platform Independent? Why it can be easily run on all operating systems like Unix, Windows or Mac?
What is Java Virtual Machine? How Java Virtual Machine works?
Understanding of Java Collection framework
Good understanding of data types and few java.lang classes like String, Math, System, http://java.io stream concepts etc.
Try coding competition to evaluate your programming skils.

  1. 面向对象编程概念,包括封装,抽象,继承,containment和多态。
  2. 为什么java平台是独立的?为什么它可以再简单的运行在所有的操作系统上?
  3. 什么是java虚拟机?java虚拟机如何工作?
  4. 理解java集合框架
  5. 深入理解数据类型和一些java.lang 下的类,例如String,Math, System,io流概念等。
  6. 尝试参加编程比赛来评估您的编程技巧

Step 4: Read Some Good Books from Experts

第四部:阅读高手写的好书

Although, the online e-books as well as tutorials will help you learn Java in a very effective manner, looking at the language from the point of view of an expert will help you a great deal. For this, start reading books which have been penned down by expert Java programmers and professionals. This will help you gain an insight on the process of coding, as is done by experienced programmers. My choice of Free book is Thinking in Java You can also buy a printed copy of Thinking in Java on amazon. In case you are looking for different good options, here are few awesome java books that I recommend.

尽管网上电子书一样可以帮助你高效的学习java,看一看高手的观点可以给你更多的帮助。因此,尝试去读一些来袭java开发人员或者教授的书。这将有助你深入了解编码过程,正如经验丰富的程序员所做的那样。 Thinking in java 这本书很nice。你也可以去找一写更好的书,这里我推荐了一些书。

Step 5: Start Creating a Simple Application Using Your Knowledge

第五步:利用你所学习的知识创建一个简单的应用

Learning only the theoretical concepts of Java will not help you become a programming expert. For this, you will be required to put the theory into practice as well. So, make use of the knowledge acquired by you and start creating a simple application. You can go for some simple coding exercises which will keep your motivation levels high. By simple I do not mean a “Hello World”. I would recommend some exercises like below

仅仅学习理论知识并不能让你成为一个编程高手。你需要将理论付诸于实践。所以,利用你学习的知识去创建一个应用,你可以在这简单的编程联系中保持高水平的学习动力。当然我说的不是“hello world”.我将推荐以下几个练习:

Try some logic exercises like
尝试这些逻辑训练如下:
Compute factorial of a number.
Create a Fibonacci series.
Find all prime numbers between 1 to 1000
Print number in word (e.g. 123 = One Hundred Twenty Three)
Try file input/output exercises like

Read a file and display its content on console.
List all files in a directory.
Create a file with some content.
Read input from user on console.

Try String manipulation exercises like
find a string in large text.
replace a part of string
parse numbers from strings

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值