What is the difference between C++ & Java?

Answer Posted / suhas sude

C++ provide Friend(),by using this you can access the
private data members or member function.But java can not
support like this function.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Difference between keyword and identifier.

605


Explain tree set and its features?

605


Why char array is favored over string for the storage of passwords?

565


What is the purpose of declaring a variable as final?

496


What is the difference between public, private, protected, and friend access?

583






What is the set interface in java programming?

635


What are pass by reference and pass by value?

533


How to reverse a string in java?

534


What are some examples of variable costs?

495


What are java methods?

580


What are the important features of Java 11 release?

589


Does substring create a new object?

537


Why should we use singleton pattern instead of static class?

468


What is a singleton factory?

522


What is a generic code?

532