Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the difference between C++ and java?

Answer Posted / ramakrishna yechuri

c++ is not purely object oriented language.
becoz when ever u say a purely object oriented everything
should be written inside the class.

In c++ u can write member functions outside the class also.

2) Though u declare a variable with private access
specifier i can access outside the main function with the
help of friend function.

Java is 99% object oriented.
purely object oriented means there should not be any
primitative data types.
java contains primitive data types.

Is This Answer Correct ?    13 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Can you inherit a private class?

1108


what are the realtime excercises in C++?

2847


What is polymorphism explain?

1269


What is encapsulation example?

1075


What is an interface in oop?

1054


What is inheritance in oop?

1042


What is advantage of inheritance?

1179


What is the purpose of enum?

1016


What is static in oop?

1089


Why is static class not inherited?

1117


Will I be able to get a picture in D drive to the c++ program? If so, help me out?

2200


What is oops and its features?

1093


Which type does string inherit from?

1113


Why is object oriented programming so hard?

1091


Why do we use inheritance?

1140