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



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

Answer / chaitanya

fine...........
in C++ we wrote #include<@@@@@@@@@>
because it accessing the functions,keywords....etc from
that header file.
But in Java we imports the classes i mean....
inherits the behaviour of that imported class
ex: import java.*;
the properties(all functions,...etc data) of the java class
will comes to what classes we wrote in the program.


FROM:
MICHAEL JACKSON(King Of Pop)

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More OOAD Interview Questions

Can we override static methods? Why?

0 Answers  


What is difference between encapsulation and abstraction?

0 Answers  


If a class inherits an interface, what are the 2 options available for that class?

0 Answers  


Explain serialization and overriding?

0 Answers   Motorola,


If there is a conflict between base class method definition and interface default method definition, which definition is picked?

1 Answers  






What is early and late Binding?

0 Answers  


What is the @functionalinterface annotation?

0 Answers  


Explain basic concepts of OOPS?

0 Answers  


What do you mean by virtual function and virtual classes?

0 Answers   MCN Solutions,


What is the difference between static and dynamic Classificaition.Give some examples.

1 Answers   InfoAxon Technologies, Protech, Wipro,


Can we use static method definitions in interfaces?

0 Answers  


What is the default access specifier in a class definition?

0 Answers  


Categories