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

What access modifiers can be used for variables?

579


How thread scheduler schedule the task?

582


What is consumer in java?

520


How do you identify if jvm is 32-bit or 64-bit from java program?

536


Highest level event class of the event-delegation model?

3497






Can we start a thread twice in java?

507


What is procedure writing?

507


What are peerless components?

616


How can we use primitive data types as objects?

556


Explain about interthread communication and how it takes place in java?

540


extending thread class or implementing runnable interface. Which is better? : Java thread

561


Can we have multiple public classes in a java source file?

551


What is executor memory?

517


Why is it important to initialize a variable?

489


What is array length in java?

521