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

Why do we use class in oops?

929


Explain the advantages of inheritance.

1099


Describe these concepts: Polymorphism, Inheritance and Abstraction.

1157


Can bst contain duplicates?

1159


What are different oops concepts?

1020


What is overloading in oops?

1109


Explain virtual inheritance?

1147


What is super in oop?

1112


How does polymorphism work?

1093


What is object in oop with example?

1191


What is stream in oop?

1251


Write a C++ program without using any loop (if, for, while etc) to print prime numbers from 1 to 100 and 100 to 1 (Do not use 200 print statements!!!)

2051


What is new keyword in oops?

1005


What is object-oriented programming? Webopedia definition

1203


Which type does string inherit from?

1068