0
do we need to import packages when we use eclipse
9 Respuestas
+ 1
what I'm saying is, there are extended libraries for additional functionality in Java, such as taking input, using JFrame, randomizer, etc.. These are outside the normal libraries and require import for them to be used
0
yes, a lot of packages aren't default by nature to conserve memory. Import the packages you need, which is why it's also advised to use specific package members instead of whole ones. Like import java.util.* vs import java.util.Scanner. Dependent on the size of your program, of course
0
class MyClass {
public static void main(String[ ] args) {
System.out.println("Hello World");
}
}
0
that doesn't need any packages outside the default, so it'll run fine
0
so in basic programming if we don't import package so is it ok
0
can you teach java me java from basic?
0
I understand what you said ... but I was asking that can you teach me java from begin?
0
Just keep practicing and reading tutorials, post questions you have. I don't do independent teaching, sorry :(
0
if I have any doubt I will ask you here thanks