0

Why do we need packages in java? *TIA*

2nd May 2017, 5:17 AM
Afif
Afif - avatar
3 Respostas
+ 1
quite similar to what u said.. moreover in Java we can group specific classes into a separate package.. likewise we can have as many packages as we want and whenever needed in any program we can import them..
2nd May 2017, 5:44 AM
Harsha Vardhan
Harsha Vardhan - avatar
0
Quiet similar to why we use header files in C++
2nd May 2017, 5:19 AM
Nantha
Nantha - avatar
0
Emm, as far as I know we use 'import' in java as we use headers in C++. Am I right?
2nd May 2017, 5:37 AM
Afif
Afif - avatar