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 @functionalinterface annotation?

903


What is the need of multiple inheritance?

1010


Do we require a parameter for constructors?

957


What is static and dynamic Binding?

1015


How does abstraction differ from encapsulation.

943


What do you mean by operator overloading?

1045


Can a class in java be inherited from more than one class?

878


Define Initialisation Purpose.

957


What is ‘this’ pointer?

946


What is virtual multiple inheritance?

914


What is single and multiple inheritance?

955


How can we restrict inheritance for a class so that no class can be inherited from it?

1032


What is multiple inheritance? How java 8 supports multiple inheritance?

1026


Can we override static methods of a class?

984


Can you give some examples of tokens?

998