在不知道c / c ++的情况下学习java [英] learning java without knowing c/c++

查看:68
本文介绍了在不知道c / c ++的情况下学习java的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我知道html,css和python。我想学习java。我可以在不知道c / c ++的情况下学习java吗?

解决方案

是的。

获取课程或书籍(避免那些在XXX天内,为傻瓜或标题中有多个感叹号的人,并从头到尾跟随它,做所有的练习。请记住,了解HTML和CSS可能不会有所帮助,但Python经验至少应该让您熟悉编程的基础知识。


您可以学习没有C / C ++的Java知识,但如果最好,学习两者。 C ++是一种混乱而困难的语言,但很多库只能用C / C ++。



Java比C ++更容易,更清晰。语言特征的数量是C ++的一小部分,Java基于更多方面的更好的语言设计决策(这是一件非常好的事情,并且在易学性方面使得Java成为肯定的赢家)。两者都是通用语言(同一系列:C)使得它们都适合解决许多共同的问题,但是有些领域中C ++或Java都是胜利者。说到一般的生产力,毫无疑问,Java是胜利者(当然取决于领域)。如果您决定学习C / C ++,那么您将看到使用高级语言的背景,这将是一条更加坎坷的道路。在我看来,首先是java,它是python和C ++之间非常好的一步。


与C ++相比,Java更容易学习,也更干净。它也更宽容,因为它可以在运行时重新编译代码并提供自动内存管理。这并不总是理想的行为,但对于大多数应用程序来说,它的效果非常好。



然而,具有挑战性的任务仍然是学习如何以适当和良好的方式建模和设计OOP程序,而不是学习用于实现它的语言的语法

hi,
I know html, css & python. I wanna learn java. Is it possible for me to learn java without knowing c/c++?

解决方案

Yes.
Get a course, or a book (avoid those with "in XXX days", "for dummies" or multiple exclamation marks in the title) and follow it from beginning to end, doing all the exercises. Bear in mind that knowing HTML and CSS will probably not be a help, but the Python experience should at least have you familiar with the basics of programming.


You can learn java without C/C++ knowledge but learning both if the best. C++ is a messy and difficult language but a lot libraries are available only in C/C++.

Java is much more easier and cleaner language than C++. The number of the language features is the fraction of that of C++ and Java is based on better language design decisions from many aspects (that is a very good thing and makes java a sure winner when it comes to ease of learning). Both being general purpose languages (of the same family: C) makes both of them suitable to solve a lot of problems in common but there are some domains in which either C++ or Java is the winner. When it comes to productivity in general its unquestionable that Java is the winner (depending on the domain of course). If you decide to learn C/C++ it will a more bumpy road for you seeing your background with high level languages. In my opinion go for java first, its a very good step between python and C++.


Java is easier to learn in comparison to C++ and also "cleaner". It's also more forgiving to work with since it can recompile code at run-time and does provide automatic memory management. This is not always a desired behavior but for most applications it works very well.

However the challenging task would still be to learn how to model and design OOP programs in a proper and good way rather than learning the syntax of the language used to implement it.


这篇关于在不知道c / c ++的情况下学习java的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆