what is the difference between Cpp And Java
Answer Posted / segi reddy
1. cpp is platform dependent where as java is platform
independent.
2. #define, typedef are available in cpp where as in java
others are availble to achieve it.
3. goto statement is there in Cpp where as in java it is
not available.
4. there are 4 types of access specifiers are available in
java and in Cpp only 3 types are available.
5. No header files in Java.
6. no Pointers concept in java.
7. Destructors are not available in java
| Is This Answer Correct ? | 29 Yes | 1 No |
Post New Answer View All Answers
Which method you will use to create a new file to store some log data. Each time a new log entry is necessary, write string to the file in java ?
What is the final access modifier in java?
Can a class have multiple subclasses?
What’s the difference between unit, integration and functional testing?
What state is a thread in when it is executing?
make a method which any number and any type of argument and print sum of that arguments.....
What is meant by nested loop?
What is flag in python?
How many unicode characters are there?
What is difference between static class and singleton pattern?
What is difference between fileinputstream and filereader in java?
Which browsers work with java?
Is char a data type in java?
What is contract between hashcode and equal method?
Can we have more than one package statement in source file ?