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...

Comment: C++ "includes" behavior and java "imports"

Answer Posted / mrangababu

#include in C/C++: #include makes a compiler to copy header
file code into a C/C++ program.
Dis Adv:It increase the program size unnecessarly.wastage
of memory and process time.

import in java : import statement makes JVM to go to the
java library execute the code there at finally substitute
the result into java program.JVM physically will not copy
any code.

import is efficient than #include....

Is This Answer Correct ?    16 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the main difference between overloading and overriding?

1085


Do we require parameter for constructors?

1113


Why use oops?

907


Define Initialisation Purpose.

995


Explain about a class in oop?

964


What do you mean by polymorphism?

1040


What is an abstract property. Give an example?

943


What is the super keyword?

1027


Can I implement polymorphism using abstract class?

984


How to define an abstract class?

1015


What are the different types of inheritance?

945


What is the default access modifier in a class?

1000


Describe the Diamond problem. Where does this problem occur?

926


What are abstract functions? Why are they used?

994


Explain about multiple inheritance?

1043