0 votes
in C Plus Plus by
What are the differences between #include in C and import in Java?

1 Answer

0 votes
by
#includeimport
#include is a statement not a keyword. 
 
While import is a keyword.
It is processed by pre-processor software.It is processed by compiler.
It increases the size of the code.It doesn’t increases the size of the code. Here, even if we write 
import java.lang.*; 
it will not attach all the class. Rather it will give permission to access the class of java.lang

Related questions

0 votes
asked Jan 9 in C Plus Plus by GeorgeBell
0 votes
asked Jan 9 in C Plus Plus by GeorgeBell
...