100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached 4.2 TrustPilot
logo-home
Class notes

java basics programming

Rating
-
Sold
-
Pages
1
Uploaded on
03-03-2024
Written in
2023/2024

Learning is best knowledge our barin.

Institution
Course








Whoops! We can’t load your doc right now. Try again or contact support.

Connected book

Written for

Course

Document information

Uploaded on
March 3, 2024
Number of pages
1
Written in
2023/2024
Type
Class notes
Professor(s)
Mosh (ph.d)
Contains
All classes

Subjects

Content preview

Java Tutorial for Beginners
Programming with Mosh
Mosh is a software engineer with over two decades of experience and has taught over
3 million people how to code. He has designed this course for anyone who wants to
learn Java. If you're a beginner, don't worry - Mosh promises to make Java super
simple and hold your hand through this course. He hopes you'll stick around and
learn this beautiful and powerful programming language.

The Anatomy of a Java Program
In this Java tutorial, we'll be looking at the basics of a Java program. The
smallest building block in Java programs are functions. If a function is a block of
code that performs a task, think of the buttons on the remote control of your TV.
Every Java program should have at least one function and that function is called
main.

Writing Java Code
After the parentheses, we have a pair of curly braces and inside these braces, we
write the actual Java code. Every Java program should have at least one function
and that function is called main. So, main is the entry point to our programs.
Whenever we execute a Java program, the main function gets called and the code
inside this function gets executed.

Downloading IntelliJ IDEA
IntelliJ IDEA is absolutely free and it's more than enough for this course, so
download it now.

Download IntelliJ IDEA
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.

As our applications grow, we're going to end up with hundreds or even thousands of
classes, so we should properly organize these classes into packages. The base
package for a Java project is the domain name of your company in reverse.

The code editor might look a little bit intimidating at first, but trust me it's
really easy and you're going to learn about it throughout this course. For now,
just type a base package for your project; it can be your name or whatever, it
doesn't really matter.

Marsh has put together a comprehensive 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 World" message. That was our first Java
program.

Next, I'm going to explain how Java code gets executed under the hood.
$11.56
Get access to the full document:

100% satisfaction guarantee
Immediately available after payment
Both online and in PDF
No strings attached

Get to know the seller
Seller avatar
vigneshdharani

Get to know the seller

Seller avatar
vigneshdharani
Follow You need to be logged in order to follow users or courses
Sold
0
Member since
1 year
Number of followers
0
Documents
1
Last sold
-

0.0

0 reviews

5
0
4
0
3
0
2
0
1
0

Recently viewed by you

Why students choose Stuvia

Created by fellow students, verified by reviews

Quality you can trust: written by students who passed their tests and reviewed by others who've used these notes.

Didn't get what you expected? Choose another document

No worries! You can instantly pick a different document that better fits what you're looking for.

Pay as you like, start learning right away

No subscription, no commitments. Pay the way you're used to via credit card and download your PDF document instantly.

Student with book image

“Bought, downloaded, and aced it. It really can be that simple.”

Alisha Student

Frequently asked questions