What is the difference between C++ & Java?
Answers were Sorted based on User's Feedback
Answer / r.lakshana
C++ is the advanced version of c i.e.C with Classes whereas
Java is the platform independent as it works on any type of
|Is This Answer Correct ?||642 Yes||69 No|
Answer / munish
java is reusable and more reliable,more secure than c++.
|Is This Answer Correct ?||492 Yes||50 No|
Answer / rishi
java has no pointers where c ++ has pointers
|Is This Answer Correct ?||425 Yes||47 No|
Answer / saket
C++ supports multiple inheritence but Java provides
interfaces in case of multiple inheritence.
|Is This Answer Correct ?||399 Yes||28 No|
Answer / sukumar.k.r
The main differences between c++ and Java are that "The
features that are present in C++ are not present in Java.
|Is This Answer Correct ?||345 Yes||58 No|
Answer / sukumar.k.r
The main difference between c++ and java is that "C++ does
not allow persistence because it does not support database
connection while Java allows persistence because it
supports database connection."
|Is This Answer Correct ?||335 Yes||78 No|
Answer / sanjay gajula
IN C++ WE CAN WRITE A PROGRAM WITHOUT USING "CLASS" WHEREAS
IN JAVA IT IS NOT POSSIBLE.
|Is This Answer Correct ?||294 Yes||40 No|
Answer / nitin agrawal
the main difference between c++ and java is that java is
consistent and it is a dynamic model.it is compact and
portable binary code while c++ is not. and most important
difference is the it has safe and secure execution
|Is This Answer Correct ?||202 Yes||31 No|
Answer / dsr
pointers no pointers
multiple inheritance multiple inheritence with interface
platform dependent plotformindependent
|Is This Answer Correct ?||86 Yes||7 No|
what is the difference b/w design pattern and architecture
What is casting?
write the hierarchy of component class?
What is meant by packages?
What is your platform?s default character encoding and how to know this?
What are the Abstract Classes provided by Java?
What is Runtime class and its purpose?
What is method Overriding in the perspective of OOPS?
Is it possible to declare abstract class as final?What happens if we do so?
What are listeners in java and explain ?
Say you want to store the information about a number of pets in an array. Typical information that you could store for each pet (where relevant) would be • Breed of animal • Animal's name • Its birth date • Its sex • Whether it has been sterilised or not • When it is due for its next inoculation • When it last had its wings clipped For each type of pet (eg. dog, cat or bird) you would typically define a class to hold the relevant data. Note: You do not need to implement these classes. Just answer the following questions. 3.1.1 What would be the advantage of creating a superclass (eg. Pet) and declaring an array of Pet objects over simply using an array of Objects, storing each of the instances of the different pet classes (eg. Dog, Cat or Bird) in it? 3.1.2 Would you define Pet as a class or as an interface? Why? (2) (2)
Which class is extended by all other classes?