File tree 1 file changed +53
-1
lines changed
1 file changed +53
-1
lines changed Original file line number Diff line number Diff line change 14
14
in c++ supports pointers.
15
15
16
16
17
- 5.
17
+ 5.Java doesn't support operator overloading
18
+ c++ support operator overloading
19
+
20
+
21
+ 6.java uses both compiler and interpreter
22
+ Java source code is converted into bytecode at compilation time.
23
+ the interpreter executes this bytecode at runtime and produces output.
24
+ Java is interpreted that is why it is platform independent.
25
+
26
+
27
+ 7.Java supports call by value only . There is no call by reference in java.
28
+ in c++ supports both call by vlaue and call by reference.
29
+
30
+
31
+ 8.Java does not support structures and unions.
32
+ c++ supports structures and unions.
33
+
34
+
35
+ 9.Java has built in thread support.
36
+ c++ does not support thread.
37
+
38
+
39
+
40
+ 10.Java support documentation comment (/** .........*/) to create documentation for java source code.
41
+
42
+ C++ doesn't support documentation comment.
43
+
44
+ 11.Java has no virtual keyword.we can override all non-static methods by default.
45
+
46
+
47
+ 12.unsigned right shift(>>>)
48
+ java support unsigned right shift.that fills zero at the top for the negative numbers.
49
+ for positive numbers it works same like >> operator
50
+
51
+
52
+ 13. Java is not so interactive with hardware.
53
+ c++ is nearer to hardware
54
+
55
+ 14. Java does not support header files like C++.
56
+ Java uses the import keyword to include different classes and methods.
57
+
58
+
59
+
60
+
61
+
62
+
63
+
64
+
65
+
66
+
67
+
68
+
69
+
You can’t perform that action at this time.
0 commit comments