Home
Recent Q&A
Java
Cloud
JavaScript
Python
SQL
PHP
HTML
C++
Data Science
DBMS
Devops
Hadoop
Machine Learning
Azure
Blockchain
Devops
Ask a Question
What are the differences between #include in C and import in Java?
Home
C Plus Plus
What are the differences between #include in C and import in Java?
0
votes
asked
Jan 11
in
C Plus Plus
by
GeorgeBell
What are the differences between #include in C and import in Java?
c-programming-interview-questions-answers
Please
log in
or
register
to answer this question.
1
Answer
0
votes
answered
Jan 11
by
GeorgeBell
#include
import
#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
Q: What are the Differences between ++*p, *p++ and *++p?
asked
Jan 9
in
C Plus Plus
by
GeorgeBell
c-programming-interview-questions-answers
0
votes
Q: What are the differences between the macros and the functions?
asked
Jan 7
in
C Plus Plus
by
GeorgeBell
c-programming-interview-questions-answers
0
votes
Q: What are differences between Source Codes from Object Codes?
asked
Jan 7
in
C Plus Plus
by
GeorgeBell
c-programming-interview-questions-answers
0
votes
Q: What are header files and what are its uses in C programming?
asked
Jan 7
in
C Plus Plus
by
GeorgeBell
c-programming-interview-questions-answers
0
votes
Q: What can be the smallest executable code in C Proramming?
asked
Jan 9
in
C Plus Plus
by
GeorgeBell
c-programming-interview-questions-answers
0
votes
Q: How to dynamically allocate a 2D array in C?
asked
Jan 9
in
C Plus Plus
by
GeorgeBell
c-programming-interview-questions-answers
0
votes
Q: What is a local block in C Programming?
asked
Jan 9
in
C Plus Plus
by
GeorgeBell
c-programming-interview-questions-answers
0
votes
Q: What is dynamic data structure in C Programming?
asked
Jan 7
in
C Plus Plus
by
GeorgeBell
c-programming-interview-questions-answers
0
votes
Q: How do you override a defined macro in C Programming?
asked
Jan 7
in
C Plus Plus
by
GeorgeBell
c-programming-interview-questions-answers
0
votes
Q: What is the difference between array and pointer?
asked
Jan 9
in
C Plus Plus
by
GeorgeBell
c-programming-interview-questions-answers
...