ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
Do you have a collection of Interview Questions and interested to share with us!!
Please send that collection to along with your userid / name. ThanQ
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
What is the difference between C++ & Java?
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between C++ & Java?
Answer
# 1
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 
operating systems.
 
Is This Answer Correct ?    41 Yes 9 No
R.lakshana
 
  Re: What is the difference between C++ & Java?
Answer
# 2
java is reusable and more reliable,more secure than c++.
 
Is This Answer Correct ?    39 Yes 9 No
Munish
 
 
 
  Re: What is the difference between C++ & Java?
Answer
# 3
c++ is a purely object oriented language and java is not due
to non supportal of multiple inheritence
 
Is This Answer Correct ?    14 Yes 41 No
Ravikiran(aptech Mumbai)
 
  Re: What is the difference between C++ & Java?
Answer
# 4
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 ?    20 Yes 13 No
Sukumar.k.r
 
  Re: What is the difference between C++ & Java?
Answer
# 5
The main differences between c++ and Java are that "The 
features that are present in C++ are not present in Java.

1) Pointers.
2) Templates.
 
Is This Answer Correct ?    28 Yes 4 No
Sukumar.k.r
 
  Re: What is the difference between C++ & Java?
Answer
# 6
java has no pointers where c ++ has pointers
 
Is This Answer Correct ?    34 Yes 4 No
Rishi
 
  Re: What is the difference between C++ & Java?
Answer
# 7
C++ supports multiple inheritence but Java provides 
interfaces in case of multiple inheritence.
 
Is This Answer Correct ?    31 Yes 1 No
Saket
 
  Re: What is the difference between C++ & Java?
Answer
# 8
C++ SUPPORTS THE CONCEPT OF
1.POINTERS
2.TEMPLATES AND
3.VIRTUAL FUNCTIONS 

BUT IN CASE OF JAVA IT WONT SUPPORTS THE ABOVE FEATURES
 
Is This Answer Correct ?    24 Yes 2 No
Prabhu
 
  Re: What is the difference between C++ & Java?
Answer
# 9
IN C++ WE CAN WRITE A PROGRAM WITHOUT USING "CLASS" WHEREAS 
IN JAVA IT IS NOT POSSIBLE.
 
Is This Answer Correct ?    21 Yes 4 No
Sanjay Gajula
 
  Re: What is the difference between C++ & Java?
Answer
# 10
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 
environment.
 
Is This Answer Correct ?    14 Yes 6 No
Nitin Agrawal
 
  Re: What is the difference between C++ & Java?
Answer
# 11
The main purpose to developed java language is that "TO 
MAKE UNIQUE COMPILER".
java have unique compiler and c++ have savral compiler.
 
Is This Answer Correct ?    8 Yes 3 No
Tarique Anwer
 
  Re: What is the difference between C++ & Java?
Answer
# 12
its the same as between a pin dick that u have and athick
hard  and long cock like i have..
 
Is This Answer Correct ?    4 Yes 6 No
Hunk
 
  Re: What is the difference between C++ & Java?
Answer
# 13
Both are Object Oriented Programming, But Java design to 
support the web applications, GUI programming is easy with 
java, Java does not require third party package(header file 
in C++) to connect Database, Java is Platform independent 
where as C++ is platform dependent.
 
Is This Answer Correct ?    15 Yes 0 No
Imran Khan
 
  Re: What is the difference between C++ & Java?
Answer
# 14
C++                          java
pointers                 no pointers
multiple inheritance     multiple inheritence with interface
platform dependent       plotformindependent
 
Is This Answer Correct ?    11 Yes 0 No
Dsr
 
  Re: What is the difference between C++ & Java?
Answer
# 15
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 ?    4 Yes 0 No
Shyam
 
  Re: What is the difference between C++ & Java?
Answer
# 16
Java is a plate form independent Language but c++ is not.
Java doesn't support multiple inheritance but C++ do.
Java is more secure and robust than c++.
 
Is This Answer Correct ?    10 Yes 0 No
Rohit
 
  Re: What is the difference between C++ & Java?
Answer
# 17
C++ SUPPORTS CONCEPTS OF POINTERS ,FRIEND FUNCTION
BUT IN JAVA CONCEPT OF POINTERS AND FREIND FUNCTION IS NOT 
AVAILABLE
 
Is This Answer Correct ?    7 Yes 0 No
Prabhu
 
  Re: What is the difference between C++ & Java?
Answer
# 18
In java we use "applets" and "swing" components to design web applications which are user friendly. where as in c++ we have no such components to develop a web applications,which are user friendly.
 
Is This Answer Correct ?    3 Yes 0 No
Rekha Katti
 
  Re: What is the difference between C++ & Java?
Answer
# 19
see complete reference of java...
 
Is This Answer Correct ?    0 Yes 2 No
Megha Shreya
 
  Re: What is the difference between C++ & Java?
Answer
# 20
You can say as java is the advance version of the C++.You 
can made differences between this two because java do some 
modification in the C++ and released it.So there are 6 
differenes between java and c++.these are 

1-Java does not support predessor.
2-Java doesn't contain any data types such as enum, 
struct,union.
3-java doesnot support multiple inheritance however it 
supports this by using interface.
4-Java have no template class.
5-java is platform indepedent and c++ is plotform 
indepedent.
6-java donot contain any pointer values.
7-java java doesnot contain goto keyword.

these above features are not supported by java but 
supported by C++.So these are the differences between java 
and C++.
 
Is This Answer Correct ?    2 Yes 0 No
Gyana
 
  Re: What is the difference between C++ & Java?
Answer
# 21
difference b/w java and c++
java is a true object oriented language while c++ is a
object oriented language

java does not support operator overloading.

java provides the multithreading capability.
 
Is This Answer Correct ?    0 Yes 0 No
Salim Farooqui
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
What is the difference between throw and throws?  5
What is System class and its purpose?  2
Is it compulsory to have atleast one abstract method in abstract class?  7
What are the operands of instanceof operator?  2
Explain, why the constructor is required in implemented class?  2
what is difference between Action messages and Action errors? TCS1
steps to connect with Oracle Databse using TYPE-2 Jdbc driver.  1
Have you worked on bits programming? examples?What is bit? How many bits are there in the byte?  1
What is hard code & soft code? Wipro4
if arraylist size is increased from initial size what is the size of arraylist...suppose initial is 100 , if i add 101 element what is the size...  6
Which class has no duplicate elements?  8
what is tempplate pattern RBS4
Which characters are allowed to use as the second character of an identifier, and which characters are not allowed?  2
What is a native method?  2
What JNDI(Java Naming and Directory Interface) provides?  4
what is prepare statement? what is calabedtarement? Symphony1
how to handle exceptions in core applications? CSS2
int a=10,b=20,c=30 a= b+c;b=a+c;c=a+b; System.out.println("The value is"+a+b+c; Honeywell16
What is the difference between array and arraylist? what is the difference between arraylist and linkedlist? EDS4
What is Session and cookies?Explain in detail with an example? CTS2
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com