Written by students who passed Immediately available after payment Read online or as PDF Wrong document? Swap it for free 4.6 TrustPilot
logo-home
Class notes

Java Tutorial for Beginners

Rating
-
Sold
-
Pages
2
Uploaded on
03-03-2023
Written in
2022/2023

This a document to learn the basic of the Java. This will help you to learn the basic like to write the first code of Java, in specific the "hello world" program. This also teaches you about the variables in Java and how to use them.

Show more Read less
Institution
Course

Content preview

Java Tutorial for Beginners
Telusko

can teach you more languages in this course but I 'd rather talk about Java now so I 'd
like to thank you for your time " Java is so famous because Java has multiple features
which helps it to be used in the Enterprise Market “and then I hit the return key and
then I type in "print ("Hello, World!" and then I hit the return key and then I type in
"print ("Hello, World!"

now so here you can see it says "next in fact for you as well you have to just click on
next next everything is smooth and depend upon your machine speed it will change
the speed might change okay that’s jdk install but how do you verify if you have Java
installed?" "In case if you get error that the Java C command not found even if you
have installed it that means the path is not set, how do you verify the path here?"} This
is our first line of code in our main() method and it will print "Hello, world!"

also, can do that too but in Python it is very simple to do it like this print ("Hello,
world!”) so basically you can write your code in one line you can get the output
example so even before we jump to hello world let me show you something so

I 'll try to paste it in the console and it says the text is not available in the console so
the statement you have to always mention is system.out.print and whatever value you
want to pass say enter and it should work okay so this is a very simple statement that
you have to remember when you want to print something on the console okay so just
remember that and you can just type or you can click on the up arrow to get the option
to reprint the text or you can just type six but if you want to work with a text you have
to put that in double quotes and it should work okay

you have to do it okay so let 's do that so let 's put our class here open bracket close
bracket

is 3 so println will print 3 println will go on new line and we can do the same thing here
with other variables so remember to use the println keyword okay so remember to use
the println keyword okay so that's all for now remember to use the println keyword
okay What you can do is instead of using print you can actually use something called
print Ln now print Ln means print new line so it will print and it will go on new lines so
we can do that here as well so just say Ln Ln at the End Print Ln which is print new line
and now compile run and you can see we got the value we got 5 and 15.

is just like this So when you want to get a variable that has a value let's say five or six
or maximum 127 you can go for byte now. We do something different for character so
for example in Java we have the range which is from 0 to 9 and for character we have
the range which is from 0 to 127 so so in other words you can use any character you
want in Java and it will be considered as a double value okay so now we're going to
talk about a few other things okay so what is an int value? An int value is a number
between 0 and 9.

Written for

Course

Document information

Uploaded on
March 3, 2023
Number of pages
2
Written in
2022/2023
Type
Class notes
Professor(s)
Rohan
Contains
All classes

Subjects

$10.19
Get access to the full document:

Wrong document? Swap it for free Within 14 days of purchase and before downloading, you can choose a different document. You can simply spend the amount again.
Written by students who passed
Immediately available after payment
Read online or as PDF

Get to know the seller
Seller avatar
rohanshelar

Get to know the seller

Seller avatar
rohanshelar Z.B.Patil
Follow You need to be logged in order to follow users or courses
Sold
-
Member since
3 year
Number of followers
0
Documents
2
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

Working on your references?

Create accurate citations in APA, MLA and Harvard with our free citation generator.

Working on your references?

Frequently asked questions