What is the difference between C++ & Java?
Answers were Sorted based on User's Feedback
Answer / himani saxena
c++ is object oriented programming and Java is pure object oriented programming
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / himani saxena
c++ is object oriented programming because in c++ without class program will make but java not make program without class therefor java is purely oops.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / tiwari suryaprakash
WITHOUT LINKER(#) U CAN'T RUN C++
IN JAVA THERE ARE NO ANY EXPRESSION(!,@,#,$,%,^,&,&,*) FOR LINK.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / g krushna kanth
JAVA can be used for some web based applications where as C++ cannot be used than JAVA
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / manoj ku. mallick
c++ is advance version of c language .
c++ is a language where as we treat java as a technology
not just as a language.
the main differences between two are given
1.purely object oriented.
2.java is simple(it doesnot use pointer)
3.java is secure.
4.it doesnt support multiple inheritance
5.interface concept which play a vital role in java.
6.multithreading concept also play a vital role.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / rachana
C++ DON'T HAVE HAVE AUTOMATIC GARBAGE COLLECTION BUT JAVA
HAVE AUTOMATIC GARBAGE COLLECTION
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / k.s.mayuri
C++ platform dependent whereas java platform independend
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / raam
program can run without using the class name in c++....
it is must that program is to be run using class name
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / eunice
C++ SUPPORT TEMPLATE WHILE JAVA DOES NOT SUPORT TEMPLATE
C++ IS OBJECT ORIENTED LANGUAGE
| Is This Answer Correct ? | 4 Yes | 0 No |
Answer / alka yadav
c++ is a superset of c but java is neither a superset nor a subset of c or c++.
| Is This Answer Correct ? | 4 Yes | 0 No |
What is definition and declaration?
2) Suppose there are 5 directories having lot of files (say txt files) in each directory. 2 things :- 2.1) You want to search for filenames which have a particular pattern. 2.2) Out of these filtered files you want to search for a particular keyword or a search string. How can you achieve this?
Can we clone singleton object in java?
What is your platform?s default character encoding and how to know this?
What is a java predicate?
What is array class in java?
Explain when classnotfoundexception will be raised ?
Which are the two subclasses under exception class?
Is static a keyword in java?
What is a default method?
How we can generate random numbers in java?
What are encapsulation, inheritance and polymorphism?