ALLInterview.com :: Home Page            
 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  >>  Programming Languages  >>  C++  >>  OOPS
 
 


 

 
 STL interview questions  STL Interview Questions
 OOPS interview questions  OOPS Interview Questions
 C++ General interview questions  C++ General Interview Questions
Question
What is the difference between the c++ & java?
 Question Submitted By :: Rajeswari.v
I also faced this Question!!     Rank Answer Posted By  
 
  Re: What is the difference between the c++ & java?
Answer
# 1
The main difference between the c++ & java is
java have
1.Encapuslating
2.Interfaces
3.Web applications
4.Appletes
5.Swings
6.Garbage collector
7.Unique compiler
8.GUI programing
9.Reusable,Reliable,more secure than the c++
10.Persistence supports "Database" connection allows
11.Platform indepent it works on any type of operating system
12.Multithreading
13.java does not requrie any header files,but it uses import
statement instead of #include statement.
14.java have 3 comment
a) Single line comment
b)Multiple line comment
c)Documentation

The above all are not support c++
C++ are
1.Pointers
2.Templtes
3.Destructor to deallocate memory
4.Multiple inheritence
5.Friend function
6.Virtual function
7.Several compilers
8.Presedessors& any data types such as enum,struct,unior
9.Operator overloading
10.Structors
11.Goto operator
12.Automatic type conversion
13.Unsigned integer
14.c++ have 2 comment
a)Single line
b)Multiple line

 
Is This Answer Correct ?    7 Yes 0 No
Rajeswari.v
 
  Re: What is the difference between the c++ & java?
Answer
# 2
c++ java
1) Support Pointers 1) Doesnot support pointers
2) support Multiple Inheritance 2) Indirectly supported
Interface
3) Storage classes 3) static only allowed
4) struct,union,enum 4) Not supported
5) Destructor used 5) Automatically performed
destroy the object using finalize method
6) Operator Overloading 6) Not supported operator
Overloding
7) Preprocessor allowed 7) Not supported
 
Is This Answer Correct ?    3 Yes 0 No
Devi
 
 
 

 
 
 
Other OOPS Interview Questions
 
  Question Asked @ Answers
 
What is abstraction?  9
Child cObj = new Parent() Wahts the output ? TCS8
why the argument is passed by reference to a copy constructor?example?  2
what is the difference between a package and a software?  3
How many types of access specifier in c# and vb.net? Infosys1
what is main difference between object oriented object base Wipro2
what are the ways in which a constructors can be called? TCS1
Contrast OOP and SOA. What are tenets of each? Wipro1
what is object slicing TCS3
swapping program does not use third variable TCS5
1. Define a class.  5
Write A Program using Single and Multiple Inheritance.  1
 
For more OOPS 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 © 2012  ALLInterview.com.  All Rights Reserved.

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