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

Java

Quick question:

What should I review to help me read the java code better?

Jamal

Anders Björkland
Anders Björkland
7,481 Points

Hi Jamal, Do you mean reading your own code, or other peoples' code? Do you find Java code to be more difficult to read than Python?

look at this line of code--> public static void main(String[] args) do you know what each of these words mean? If you do, then you're understanding plenty. It's also always good to review your own code, to understand what will be the result of it. Practice makes perfect. Is there anything in particular you struggle with?

1 Answer

Elsa Mendes
Elsa Mendes
5,271 Points

Hi Jamal,

I guess you meant read other people's code. My advice to you is try to understand and dominate the 4 fundamental principles of OOP: Encapsulation, Abstraction, Polymorphism and Inheritance, which will allow you also to learn and read other programming languages. Also remember that each person has his own style of coding and an expected solution might be implemented in different ways.