Just asking if I have the right understanding
System.out.println();
System is the package
out is the class
println() is the method
If this is wrong, then please tell me what the correct answer is.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
No,
Systemis the class, which resides injava.langpackage (that’s why you don’t need to import it).outis a static variable ofSystemclass. It is public, so that you can access it from outside and it is static so that you it’s associated to the class declaration and not to any instance of it.println()is a method, indeed. And it is a method ofoutvariable, which is aPrintStreaminstance.