What is the difference between C++ & Java?

Answer Posted / shyam

java is totaly Encapsulated because every thing with in a
class...i c++ main remains out of class but in case of java
its inside the class...................

Is This Answer Correct ?    54 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Which is faster set or list in java?

533


Give reasons supporting that string is immutable.

500


How do you get length in java?

563


What is constructor and virtual function? Can we call a virtual function in a constructor?

684


Is an empty arraylist null?

600






Difference between collection, collection and collections in java?

571


Are true and false keywords?

579


What is stream api in java8?

540


What is the main purpose of serialization in java?

530


Write a function to print Fibonacci series and Tribonacci series?

762


Write a program in java to create a doubly linked list containing n nodes.

558


Can a vector contain heterogenous objects?

605


What is nested top-level class?

580


Which collection does not allow duplicates in java?

475


Is there any limitation of using inheritance?

571