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 super keyword?

1037


Classes and structs support inheritance. Is this statement true or false?

1003


What is Polymorphism, overloading, overriding and virtual?

1098


What are virtual functions, base class pointer, derived class pointer, biding references?

983


What are the various types of constructors?

1034


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

1046


What is the @functionalinterface annotation?

945


Explain about message passing in object oriented programming?

1000


Explain the different types of constructors

937


What is method overriding?

940


What is a nested interface?

1046


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

1043


Explain what is an object?

983


Can a function be overloaded based on return types?

966


What is abstraction? How does it differ from encapsulation

968