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

Can we access interface static method using interface references?

1111


What is @functionalinterface?

1060


Differences between functional programming and object-oriented programming?

1099


What is the practical implementation of inner classes?

1037


What is the difference between public, private and protected access modifiers?

1095


Describe the Diamond problem. Where does this problem occur?

982


Is iterator a class or interface? What is its use?

992


Can we have default method with same name and signature in the derived interface as the static method in base interface and vice versa?

1084


What are Classes and Objects?

1077


If a method definition has been specified in class , its base class , and the interface which the class is implementing, which definition will be picked if we try to access it using interface reference and class object?

1034


What are the limitations of oops?

1058


What are the different principle of OOPS?

1036


When will you use an interface and abstract class?

1039


Is @functionalinterface annotation mandatory to define a functional interface? What is the use of @functionalinterface annotation? Why do we need functional interfaces in java?

1207


Can you call the base class method without creating an instance?

1134