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 |
Can we override static methods? Why?
What is difference between encapsulation and abstraction?
If a class inherits an interface, what are the 2 options available for that class?
Explain serialization and overriding?
If there is a conflict between base class method definition and interface default method definition, which definition is picked?
What is early and late Binding?
What is the @functionalinterface annotation?
Explain basic concepts of OOPS?
What do you mean by virtual function and virtual classes?
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?
What is the default access specifier in a class definition?