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"



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

Answer / 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

More OOAD Interview Questions

What is inheritance?

7 Answers   Protech,


What are the types of polymorphism?

0 Answers  


What is a nested interface?

0 Answers  


What is the difference between class and interface?

0 Answers  


What do you meant by static and dynamic modeling?

7 Answers   NIIT,


Is class an Object? Is object a class?

3 Answers   InfoAxon Technologies, Protech,


Is is possible to define our own functional interface?

0 Answers  


Can a class implement two interfaces having default method with same name and signature?

0 Answers  


what is the difference between the up phase and up workflows?

1 Answers  


What is the default access modifier in a class?

0 Answers  


Giving reasons explain two external responsibilities of a project manager.

2 Answers  


A class inherits from 2 interfaces and both the interfaces have the same method name as shown below. How should the class implement the drive method for both car and bus interface?

0 Answers  


Categories