Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Youssef Bourahla
442 PointsGreetings :D what are objects exactly, and what is the difference between console and System
Mr.Craig said that System is used on the whole program does that mean that console has an another specific aim?
1 Answer
sandro mirijanashvili
2,686 Points1)Objects are the same thing in programming as in the real world. we can find many objects around us, cars, dogs, humans, etc. All these objects have a state and a behavior.
If we consider a dog, then its state is - name, breed, color, and the behavior is - barking, wagging the tail, running.
2)there is no deference between console.println() and System.out.println() they will do the same thing. Use whichever you like. console io is library so it need to be imported before using and System.out.println() or System.out.print() can be used without importing anything.