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.