C++学通了,学java很容易。(包括Pascal,C#,etc...)
解决方案 »
- 对BufferedInputStream的疑问
- Java Swing方面的问题
- 不使用正则表达式如何在java中判断String是一个number?
- 想用java做一个加密软件,谁能给我一点思路吗?
- 一个POI的EXCEL问题
- 请提供比较详细的nat资料,或是代理的代码!
- 请教,为什么PDF在IE里不显示????奇怪问题
- 谁有空帮我一起读一下程序 我刚开始学 谁带带我 谢谢!
- 谁会用JInternalFrame????????
- 窗口的简单问题~~~
- 怎么从管理里给回答人加不了分呢?我看到页面已经提示分配了,可是看贴子怎么还是没给?
- 请各位高手再看此帖!还是关于用JAVA导入数据库到MYSQL的!感激不禁!必给高分相赠!
不过我现在也正在学c++。 :)
Search This Site
The following text has been reproduced from a wonderful computer reference chart with permission from the company that produced it, BarCharts, Inc. For C++ Programmers Java bears a strong (intentional) relationship to the widely used C++ programming language. There are, however, a number of significant differences, the most significant of which include: Data Types: In C/C++ many data types (such as int) are hardware dependent. In Java, the size and manner of representation of data is specified, to facilitate machine independence of code. References vs. Pointers: In C/C++, variables that contain addresses of data and functions, pointers, can be declared. In Java, no addresses are used. Instead, references are used to establish variable names for objects. Automatic Variables: In C/C++, memory for variables declared within functions (i.e., local variables) will normally be allocated automatically, on the stack. In Java, all memory for non-intrinsic data objects must be acquired with the new operator. Dynamic Memory Management: In C++, memory is dynamically assigned by the programmer (using the new operator) and must also explicitly be freed (using the delete operator). In Java, a garbage collection process automatically locates the memory associated with any object that is no longer referenced within the program, meaning no explicit deletion is required. Global Data and Functions: In C++, data and functions can be declared outside of any class definition. (In C, all functions are declared that way). In Java, all data and functions must be declared within class definitions. Like C++, however, a static declaration may be used to make member data/functions object dependent. Inheritance: Unlike C++, Java permits only one parent per class. Many benefits of multiple inheritance be achieved, however, using JavaInterfaces. Java class constructor functions can also explicitly invoke parent constructors with the super keyword. Boolean Expressions: In C/C++, boolean (false/true) expressions translate to 0, nonzero integers. In Java, test are done with the boolean data type. As a result, expressions containing && and || stop evaluating an expression once its results are known to be true or false, referred to as a shortcircuit. The & and | operators, in contrast, evaluate both sides of their expressions even if the final result is already known (e.g., the left side of an & expression is false ). The information above has been reproduced with permission from BarCharts, Inc.
----
Improve your development perfomance...
Go here --- http://www.angGoGo.com/ OpenSource Project Originated in China
Go here --- http://www.chinaFUSS.com/ --
我接触的也是你熟悉的那些东西,能知道你的联系方式么?
我的[email protected]