What is the difference between C++ and java?
Answer Posted / jenny bala
The major Difference between C++ and Java is,
1.C++ is not fully OOP language since we can write a program without class also, But in java we cannot write a program without class.
2.C++ is not fully platform independent where .class file is not generated if you didn't use class in your program. But in java all files will create .class file after compilation of program, so it's Fully platform independent.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is the highest level of cohesion?
What is the difference between encapsulation and polymorphism?
What are the two different types of polymorphism?
What are the advantages of polymorphism?
What are the three main types of variables?
class CTest { public: void someMethod() { int nCount = 0; cout << "This is some method --> " << nCount; } }; int main() { CTest *pctest; pctest->someMethod(); return 0; } It will executes the someMethod() and displays the value too. how is it possible with our creating memory for the class . i think iam not creating object for the class. Thanks in Advance... Prakash
Write a c++ program to display pass and fail for three student using static member function
Why is polymorphism needed?
What is a class in oop?
Can we define a class within the interface?
What is constructor overloading in oop?
2. Give the different notations for the class.\
What is object and class in oops?
What is abstraction oop?
What is abstract class in oop?