You're saving my life. Really. I'm spanish speaker but thankfully I'm fluent in english so when I finnish my 5-hour java classes in spanish everyday without understanding anything I come here and watch you videos in english wich I think are better explained. I think I'll be able to pass exams because of you :_D Thank you so much!
This is "THE BEST" explanation of object I have seen. I have been looking at several videos and found none that is really able to explain what an Object is. This video explain the concept really clearly. so, THANK YOU!!
When i started 2 days ago i was very confused with all those objects and Strings ,but today when i found your channel i think i can actually learn java.
Thank you for breaking it down so much I don't know why people cant just tell you the same stuff this guy explains. Every time I ask someone a question in programming they just look at me and say "well how do you think it works?" .... fuckers if i knew how it worked i would just do it ahfljwahfljwejhf! :D great vid.
Omg thank you so much for making this video! I had so much trouble trying to understand what instances are and really didn't understand the "class" in Java coding as well as I thought I did. This video washed away so much confusion for me regarding objects. Keep up the good work :-).
Your Java tutorial videos is like me watching an interesting episode script and when one episode is over I be looking forward to go straight to the next available episode. It's very hard to find the best tutorial videos out there that break things down very clearly at a good beginner pace and you are one of the best. I would recommend you to keep on doing what you do on your way to a million subscribers one day, so in return I congratulate you mark another history of earning a subscriber from me. - Thanks!
ok. what confuses me is the first "Planet" is referencing the Planet class on your other page and the word "Earth" modifies the class to tell java to name this particular planet earth. and from my java course "new" makes room in the memory for that "planet earth" i get all that, but what does the "Planet" after the "new" reference or call out or do?
Sure thank you I may be asking lot of questions. I am a QA and trying to learn Selenium with Java and didn't have any background in programing. Little overwhelmed with all the information :-(
NEERU MONGA Ah Selenium - these tutorials should help you. You will want go go all the way to the 40th episode ... after that the episode start to deal more with apps . But by 40 you will have all the core concepts down
sir can we do same thing by creating variable outside the main class in the AllPlanets Class also...? I mean when we can create native variables,, why so we need to call it from outside..
I wrote the exact same code as you wrote, letter after letter. But i still got this error message:Exception in thread "main" java.lang.RuntimeException: Uncompilable source code - Erroneous tree type: objects.Planet at objects.Objects.main(Objects.java:7)
Well your tutorials are so easy to understand. I ve been watchin thenewboston beginner java tuts and this part was so difficult to understand, yet you made it so simple to understand.Are the java series going to continue???
earth is an object instance of the planet object? therefore we can make another object instance of planet object called Mars? Planet Mars = new Planet Mars.size=50,000 // i put comma for readability i know java doesn't accept that Mars.displaySize(); and thus we could have displayed both mars and earth size in the console Have i understood this correctly? Looking forward for your reply, Thanks in advance! subbed :)
On Hang Tang The opening and closing parenthesis are required if you want to pass data or information in to your method - if the brackets are empty then you are passing nothing.
one question...with your previous tutorials, you always start with "class". I do understand the meaning of "public" which is to make it visible to other class/classes, am i right? But my question is.....so when do I use "public class" and when to use just "class". Thank you. :D
Well that's a good question. All the keyword public does is set the visibility of your class template. Do you want everyone to see it or not? If not then you take the public keyword off. I would say that you should keep your classes public so that everyone can get to them. I think in episode 17 I will go in greater detail about when to use public. Also begin to think of you class more as a template or blueprint and when you use the new keyword that is when you create your objects off the class So there are 4 visibility keywords: public, private, protected, and default. In episode 17 i will discuss all of them and why you use them in certain scenarios.
Generally though you always set your classes and methods to public and your variables to private. Now of course for these training lessons it doesn't really matter because we are dealing with a few classes. But when you have a large project you always want your methods and classes set to public and your variables set to private. I will explain that in 2 episodes - 17 and 31. The protected keyword dont worry about that so much for now - i dont use that alot. By the way with public EVERYBODY can see it ... private is MOST restrictive - only everything in the class can see private - everything out side the class cannot see anything set to private. But you want your class set to public because thats the whole point of a class - we want to be able to build objects from it.