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 Java Objects (Retired) Harnessing the Power of Objects Helper Methods and Conditionals

Jan Satsatin
Jan Satsatin
422 Points

Easier explanation

Is there an available graphical explanation or analogies to define JAVA terminologies? Most of the definitions on the net just provide new confusing terminologies to define a confusing terminology which makes me more confuse. Definition that you can explain to your grandfather, is what I need.

There is in other sources, but not in TH. I'm in the same boat, I'm going to leave comments everywhere I can so the staff sees the weaknesss in the materials we are paying for. There's no checking if we understand the concepts, just seeing if we can copy the cope from the workspace and change terms to meet the challenges. That's terrible.

Craig Dennis
Craig Dennis
Treehouse Teacher

Hmmm typetypetypetype please refer to this when you finish the course. The last stage's challenges are all recall, I think you might find that more to your liking for the assessment you are looking for. In fact, I get complaints that they don't match the video.

Sorry you seem to be having a hard time with this, and I do appreciate your honesty. Let me know if we can help, and if you like the recall style challenges more.

3 Answers

Craig Dennis
STAFF
Craig Dennis
Treehouse Teacher

A great place to start is the official Learning the Java Language trail from Oracle.

Is there something specific I can help with?

Raquel Smith
Raquel Smith
10,683 Points

typetypetypetype Can you like to the resources you have found that make the definitions easier to understand? Jan Satsatin mentioned that they have been unable to find satisfactory definitions "on the net," yet you seem to have found them, but did not leave a link.

I've gotten into Udacity now, it's Google backed and I suggest starting with some of the courses for newbies, explains things very well in comparison. In general I have found multiple sites help the most, but (yikes they'll ban me for honesty) I won't be renewing Treehouse, just swap between user forums and multiple free sites to get exposure. If I have to wait 48 hours for an answer on Treehouse when I pay $50 a month, I'd rather wait 48 hour on free communities.

Check out Programming Foundations with Python on Udacity, it's free (some courses are paid but they have tons for free). I've had a start in Python before but not explained so clearly, they spend more time focusing on how to find the answers and create and build. Treehouse is just...copying and mimicking.

Good luck!

Craig Dennis
Craig Dennis
Treehouse Teacher

typetypetypetype sorry to hear your frustrations. 48 hours is a maximum amount of time to get a request from a teacher, you are quoting a support request. You'll find most questions answered here within hours. Good luck in your quest!

Jan Satsatin
Jan Satsatin
422 Points

Thanks for the response guys!.

I'm really having a hard time to see the point of using constructors. Is it just purely to make your code D.R.Y and clean? or there will be limitations in the future that needs a use of a constructors?

I can't get why we need constructor using the examples on the video. It seems that we can just declare the variables within the same class without creating other one just to setup constructors.

It would also be a great help if there's an example of code without the use of constructor vs using constructor so we can better grasp the importance of it.

Jonathan Grieve
Jonathan Grieve
Treehouse Moderator 91,253 Points

I think Constructors just help keep our code organised and clean. Just like why we have functions and methods. We have a long list of statements in a script when we can put code into logical chunks that make it easier for other people to understand. :-)

Remember this courses are beginner level and are designed to make you think... how could I use these constructors in a bigger project? :-)

Raquel Smith
Raquel Smith
10,683 Points

Hey Jan - constructors help you define the objects you are creating. If you don't define a constructor explicitly (i.e. you don't provide one at all), then Java will create an empty one for you, which means that the object you create won't have any properties aside from ones it inherits from its superclasses (superclasses are discussed in an upcoming lesson). If you do define a constructor, it allows you to set values for the properties of that object (my lingo might be off there, but I hope it makes sense). The variables have to be declared outside of the constructor so that they can be accessed by the other methods - this has to do with scope. If they were declared and initialized by the constructor then the following methods would not be able to access them because they are out of scope of those methods. Does that make sense?