What is the difference between C++ & Java?

Answer Posted / mahesh telor

c++ provides two types of comment where java provides 3
types of comment

* c++ comment is * java comment is
(1) single line comment (1) singleline comment
(2) multipleline comments (2) multipleline comments
(3) documentation comment

Is This Answer Correct ?    16 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

When should you use arraylist and when should you use linkedlist?

486


Can we pass a primitive type by reference in java? How

525


What is meant by flickering?

650


Explain heap sort?

698


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

557






How to sort an unsorted array in java?

607


Do loops java?

544


Write a java program for binary search?

603


What is the best definition for data?

514


What is string example?

593


What is the technique adopted to create an immutable class?

519


What do you mean by default constructor in java?

572


What is the purpose of static keyword in java?

509


Does java support Operator Overloading?

604


How do you control extraneous variables?

499