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

Which OOPS concept is used as a reuse mechanism?

0 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  


Why abstraction is important?

0 Answers  


Explain what is meant by polymorphism?

0 Answers   BPL,


Which oops concept is used as reuse mechanism?

0 Answers  


What are abstract classes?

0 Answers  


What are the different principle of OOPS?

0 Answers   QuestPond,


Giving reasons explain two external responsibilities of a project manager.

2 Answers  


Explain the concept of multiple inheritance (virtual inheritance). Write about its advantages and disadvantages?

0 Answers  


what are the main underlying concepts of object orientation?

2 Answers  


Can you instantiate an abstract class and what is an inner class?

0 Answers   Flextronics, Tavant Technologies, Virtusa,


What is the difference between class and interface?

0 Answers  


Categories