100% satisfaction guarantee Immediately available after payment Both online and in PDF No strings attached
logo-home
Java Tutorial for Beginners $9.69   Add to cart

Class notes

Java Tutorial for Beginners

 5 views  0 purchase
  • Course
  • Institution

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.

Preview 1 out of 2  pages

  • March 3, 2023
  • 2
  • 2022/2023
  • Class notes
  • Rohan
  • All classes
avatar-seller
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.

The benefits of buying summaries with Stuvia:

Guaranteed quality through customer reviews

Guaranteed quality through customer reviews

Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.

Quick and easy check-out

Quick and easy check-out

You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.

Focus on what matters

Focus on what matters

Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!

Frequently asked questions

What do I get when I buy this document?

You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.

Satisfaction guarantee: how does it work?

Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.

Who am I buying these notes from?

Stuvia is a marketplace, so you are not buying this document from us, but from seller rohanshelar. Stuvia facilitates payment to the seller.

Will I be stuck with a subscription?

No, you only buy these notes for $9.69. You're not tied to anything after your purchase.

Can Stuvia be trusted?

4.6 stars on Google & Trustpilot (+1000 reviews)

75323 documents were sold in the last 30 days

Founded in 2010, the go-to place to buy study notes for 14 years now

Start selling
$9.69
  • (0)
  Add to cart