I love your tutorials you are better than any websites that claim to teach you the best you have clear speaking. I love your way speaking like Im a 5 year old kid .
Absolutely fantastic, there is nothing about this video that I can criticise. Brilliantly paced, very clear and concise and goes over everything in meticulous detail. There is an art to being able to explain things this well, guess that makes you an artist!
your videos are awesome..I have one wish..and a question..can I make a java game or something else creative after watching ur whole java tutorials. ?.if yes..please make a series of video..for java game..
Bro wait I still don't get it. So if line 6 is the constructor and lines 7-11 are the initial setup code. What is going on with line 23? Is line 23 the same constructor as line 6?
Briannadeg Yes just variables and methods ... constructors are really used to build the object with the new keyword. Static is never part of an object they exist outside of the object in its own memory that is actually shared. It is the class loader that actually scans for anything with the keyword static and then loads it into shared memory - then all objects can access that shared memory where the static variable or methods reside.
Briannadeg Ya think of a class - you create 40 objects from it or 40 instances of that class - they can all access the same static variables because the static is always out there and in shared memory and of course statics are not part of the object - and therefore only one copy of the static variable or method has to be loaded
Really, I'm the only douchebag who had to pause the vid and explain how Pluto isn't a planet? I'm an ass. Lemme redeem myself by saying just how incredibly useful and non Indian your videos are. You are much appreciated.
Shane D At a minimum you can just create a object to kick everything off in the main - which I did with the new keyword but its not necessary to put any more code there - in fact most programmers will do just that - create an object and that kicks everything else off outside the main. There are some programmers though that prefer to put everything in the main line by line - its really preference how you prefer to do things