Java Programming Tutorial 1 - Introduction to Java

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
welcome to my channel everybody my name is Caleb and this video series is going to give you everything you need to know to be a Java developer so we're going to start you out from a complete newbie and by the end of this series you should be writing Java applications like a pro and here's this beautiful speed drawing that you guys can stare at for a couple minutes while I talk one thing that makes this series unique from all the other Java series on the Internet is I don't have the goal of boring you to death I'm gonna try and make everything entertaining and fun now I'm just gonna tell you upfront though that it does take work to learn any programming language and you're not going to get there without practice so with that I wanted to introduce the sponsor of this series pram for those of you who don't know pram is a website that you can practice your coding skills and your interviews it's a peer-to-peer interviewing system so you get matched with other engineers like you this website is huge if you want to get a job as a web developer or software engineer I use this website to practice my data structures and algorithms and it was tremendously helpful but that's not their only topic they also have system design front end and even behavior interviews so you know if you're socially awkward weirdo you can go check out pram overall pram is an awesome platform to practice your technical skills your interviewing skills and prepare for interviews at companies like Google Facebook Twitter Amazon Spotify and more so please go give prep a try you won't be disappointed I'll leave a link for you guys in the description so on with the java programming language java is one of the most popular programming languages and it's often taught in schools one of the huge benefits of java is that it allows you to build an app that can run on Windows Mac and Linux so it allows us to make an app that can be used by as many people as possible with as little work as possible and we're gonna talk about how all of that works in this series but what you need to know now is that Java is a very powerful programming language that can enable you to make some pretty sweet apps some of the things we're gonna talk about in this series is just a Java fundamental so how to actually use the language but also some of the technical details and the how and the why behind what we're doing so I don't want you to get from the series what to type I want you to understand why we're doing that and give you that foundation to be able to write your own applications now I think one of the problems with people who study programming and just don't get it is they dive in a little bit too soon and they don't really understand what they're trying to do so first we're just gonna talk a little bit about the architecture of Java so we write code which is basically a series of commands to tell the computer what to do and Java has made the process of us talking to the computer super easy and why is that exactly well the reason is because Java is a higher-level language and what that means is it's actually a couple steps away from talking to the computer directly so we basically talked to Java and something that makes sense to us and then that's converted to something the computer can understand so if you wanted to see this visually it would look like this boom now there's a lot of stuff here but we're gonna go through it from beginning to end so when we write Java code that is known as source code and these files are going to be named something with a dot Java at the end so the asterisk just means any file so something dot Java and what happens is we compile this code into what's known as bytecode we don't actually look at this bytecode but it's a very important step in this process the bytecode is going to be dot class then what happens is each one of these operating systems can understand this bytecode we don't have to worry about writing something for Windows and then rewriting it for Mac and then rewriting it for Linux we just write one thing in Java and the rest is done for us right now this seems a little bit magical but there's a few things that make this possible the first is what's known as the JDK the Java development kit and as you would guess this is how we develop in Java so the JDK is up here it gives us all the tools that we need to program in Java the part down here that allows our code to run on all these different operating systems this is known as the JRE the java runtime environment so there's the JDK and then the JRE you can remember which is which because the JDK is Java development kit and the JRE is Java runtime environment and when I say runtime just think of running the actual code so each one of these operating systems runs our application if this just seems like a bunch of jargon right now trust me by the end of the series this will be like second nature but just to overview we rewrite Java code and we do that with the help of the JDK and then we compile our Java files to dot class files which contains byte code and then this bytecode is ran by these different operating systems using the JRE so one thing that's always kind of annoyed me with Java is that if you have Java installed on your computer to run certain applications it asks you to update like every two days and that drives me crazy I don't know if you guys have experienced that but that thing that's asking you to update is the JRE it's what allows people to run Java applications on their computer to put this into context a little bit more if you go on the internet and search Java what's gonna happen is you're gonna come up with this Java comm and this is the JRE so this is what people are going to install to run your application the other thing is the JDK so if we search JDK well now we have something else the Java SE the SE just means standard edition it's the free version that everyone can download and use this is what we are going to download to start programming in Java when you download the JDK that's going to include everything we need to run Java as well so we're gonna be able to develop and run our Java so this includes the Java Runtime environment you don't have to worry about downloading both so what we're gonna do is go to this website here and download Java SE and the version might be newer so that should be okay but this is the version I'm gonna be using for this course now you're going to need to download the version for your operating system I'm going to be developing on a Mac so that is the one I am going to download this Ben dot dmg oh gosh you have to accept Shh there we go I'm gonna let that download and that's all I really have to say to introduce Java for you guys in the next video we are going to create our first Java program and just talk about all the pieces to getting started before you guys go I want you to check the description because there's going to be some other resources for you guys specifically each one of these videos is gonna be tied to a blog which has the code there for you guys to copy and paste or read through if you prefer that and also there's going to be a link to a Java crash course this is something you guys would be interested in if you want a nutshell version of this series so if you want to review everything we talked about in this series or if you just want some more hands-on examples and want a syntax reference guide for all of the content check that out guys that could really be good if you want to prepare for a job or just study for an exam definitely recommend it last things are will be a link to the sponsor who has been tremendously generous and helping me make this series so please go to their site sign up and give it a try that's what I did honestly it was one of the best decisions I made I ended up using pram for personal use to study for a technical interview that ended up going really well so I'd highly recommend them with that if you guys have any questions comments or concerns please leave them in the comment section below please subscribe and I'll see you in the next video [Music]
Info
Channel: Caleb Curry
Views: 616,998
Rating: 4.9346819 out of 5
Keywords: java, programming, tutorial, introduction to java, java (programming language), java tutorial, java programming, code, coding, learn to code, beginner, how to code, softwear developer, caleb, curry, calebthevideomaker2
Id: 2dZiMBwX_5Q
Channel Id: undefined
Length: 7min 35sec (455 seconds)
Published: Mon Nov 26 2018
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.