

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
A Java tutorial for beginners designed by a software engineer with two decades of experience who has taught over 3 million people how to code. The tutorial covers the anatomy of a Java program, functions, classes, packages, and variables. It also explains the Java compiler, bytecode, and platform independence. The tutorial is part of a four-part Java series that covers object-oriented programming and core Java APIs. The document also provides information on the history of Java, its popularity, and the average salary of a Java developer in the US.
Typology: Study Guides, Projects, Research
1 / 2
This page cannot be seen from the preview
Don't miss anything!


Java tatorial for biginners Java Tutorial for Beginners Programming with Moin
Moin is a software engineer with two decades of experience and he’s taught over 3 million people how to code. He’s designed this course for anyone who wants to learn Java if you’re a beginner do n’t worry I ’ll make Java super simple and hold your hands through this entire course. I hope you’ll stick around and lea rn this beautiful and powerful programming language. We ’re gon na look at the anatomy of a Java progra m in this java tutorial. The smallest building block in java programs are functions if function is a block of co de that performs a task as a metaphor think of the buttons on the remote control of your TV. IntelliJ IDEA i s absolutely free and it ’s more than enough for this course so download all right now. After the parenthes es we had a pair of curly braces and inside these braces we write the actual Java code. Every Java progr am should have at least one function and that function is called main so main is the entry point to our prog rams whenever we execute a Java program the main function gets called and the code inside this functio n gets executed.
A class is a container for related methods so we use classes to organize our code by the same token we have a concept called package and we use a package to group related classes so as our applications gro w we ’re gon na end up with hundreds or even thousands of classes so we should properly organize this c lass us into packages. The base package for a Java project is the domain name of your company in Reve rse. Code editor might look a little bit intimidating at first but trust me it ’s really easy and you ’re gon na le arn about it throughout this course. For now just type a base package for your project it can become that your name or whatever it does n’t really matter all right now let ’s go forward. Marsh has put together a co mprehensive cheat sheet with summary notes that you can download below this video. IntelliJ is building our application and we can see the result in this little terminal window so here’s our hello work message so that was our first J ava program next I ’m going to explain how Java code gets executed under the hood.
IntelliJ uses the Java compiler to compile our code into a different format called Java bytecode. This Java code is platform independent and that means it can run on Windows Mac Linux or any operating systems that has a Java runtime environment. Java applications are portable or platform independent. Java was d eveloped by James Gosling in 1995 at Sun Microsystems which was later acquired by Oracle in 2010. Ja va has close to 9 million developers worldwide currently about 3 billion mobile phones run Java as well as 120 million TV sets and every blu-ray player. Average salary of a Java developer is just over $ 100,000 p er year in the US. This course is the first part of my complete four-part Java series. Each part is about thr ee to four hours long so it can easily complete it in a day or two. The first part will give you a solid foundati on on how to start programming in Java in the second part we ’ll talk about object oriented programming which is a style of programming use in most if not all Java applications. The third part will talk about core Java API is or application programming interfaces.
Once you learn all this I ’m gon na give you a project you ’re gon na build a mortgage calculator on your o wn so make sure to pay great attention to all the materials. Make sure to use most of them in this project are you ready now let ’s jump in and get started in this tutorial we’re gon na talk about variables in Java w e use variables to temporarily store data. In the next tutorial we’re going to talk about various types in Jav a. We have two categories of types we have primitive types and non primitive types or reference types for storing complex objects. All these types are for storing whole numbers that do n’t have a decimal point. In one bite we can store values from 128 to 127. In Java whenever you deal with a large number like this yo u can use an underscore to separate every three digits just like how we use a comma in our documents to make our numbers more readable. With integers we can store values up to two billion but let ’s say the n
umber of times this video has been watched is three billion so I had a three here now we have a red line t hat indicates an error.