Java Tutorial For Beginners | Java Full Course 2023 | Java Programming | Java
Tutorial | SimpliCode
SimpliCode
Java is one of the most popular programming languages out there and it was created
way back in 1991 but it was publicly released only in 1995. Java is a write once
run anywhere type of programming language which means that everything which happens
in java happens around objects objects enable the execution of the program. Java
can be used to build web applications mobile applications desktop applications even
command line applications. Java is a strongly type checking language so when you
run your program it 's a two-step process in java you compile the program and then
you it then you execute the program which we also call as interpretation so you
have a java compiler and a java interpreter. Java also provides automatic garbage
collection and multi-threading support. Java program can be run on any machine let
's take the example that you ran these two steps on a windows machine so you ran
your you write your program and you compile your program. Once you have the
bytecode available then you can run this program on any other platform of your
choice okay so that was about how the java program execution works.
We will basically look at how we can install java on a windows machine using jdk.
The first step to install java is to download it from the official oracle website.
You can also install gre separately if you talk about that use case where you
compile your program on a. windows machine with jdk and then you exported your dot
class file to another machine and there you just installed the. runtime
environment. In terms of what platform you want to install java on whether it is a
linux platform or a mac os machine or a windows platform so like i said in the
beginning of the demo that today we are going to see how we can install this on a
windows machine. i 'm going to download the windows x64 installer here if you are
working on a linux machine or macos machine you can download those respective
installers as well so you can see the exe here. Java is going to unpack all the all
the libraries and all the runtime libraries which we discussed in the previous
lecture and put all that into the location which we specified to install java it
will also set up the rest of the prerequisites which are required to run java
successfully so looks like the java has been successfully installed. If you get a
message saying that java is not recognized as a command it means that Java is still
not successfully installed and something has gone wrong in your installation.
installing eclipse on a windows machine so the first thing which we need to do is
to download eclipse so for that i 'm just going to open my web browser and type
eclipse download press enter and then you need to find the link which says eclipse.
org downloads which is the first link in my search results. Eclipse is an open
source organization it works on donations so if you feel generous about it you can
also donate to it which will show here so we can move to the next step which is
about installing so you can see here i have an installer here an exe file basically
which i have pre-downloaded to showcase this demo. use that exe to showcase how we
can install it. The installation generally takes a bit of time to complete in some
cases so again it depends upon your in your computer's capacity and speed. If you
have a computer which is not very strong on configurations you can just be patient
and wait for some time and the installation will be finished once the installation
is finished you will see this launch option here.
Just go to file new and choose a kind of project you want to create whether it is a
maven project or enterprise application project or dynamic web project or just a
project. can check out a project from git you can import an existing project you
can go to the marketplace create a java web project. or you can just close this you
have a nice navigation project project explorer bar here. Java has these primitive
data types which store numbers are byte short int long float and double. byte is
the shortest possible data type value which you can use in java to store numbers
you can only store numbers within the range of minus 128 to plus 127. The next
bigger data type is short which is a bit bigger than byte and the next one is long
which is even bigger than int. Float and double have been created for use cases
whether where you want to store numeric values which have decimals which are
Tutorial | SimpliCode
SimpliCode
Java is one of the most popular programming languages out there and it was created
way back in 1991 but it was publicly released only in 1995. Java is a write once
run anywhere type of programming language which means that everything which happens
in java happens around objects objects enable the execution of the program. Java
can be used to build web applications mobile applications desktop applications even
command line applications. Java is a strongly type checking language so when you
run your program it 's a two-step process in java you compile the program and then
you it then you execute the program which we also call as interpretation so you
have a java compiler and a java interpreter. Java also provides automatic garbage
collection and multi-threading support. Java program can be run on any machine let
's take the example that you ran these two steps on a windows machine so you ran
your you write your program and you compile your program. Once you have the
bytecode available then you can run this program on any other platform of your
choice okay so that was about how the java program execution works.
We will basically look at how we can install java on a windows machine using jdk.
The first step to install java is to download it from the official oracle website.
You can also install gre separately if you talk about that use case where you
compile your program on a. windows machine with jdk and then you exported your dot
class file to another machine and there you just installed the. runtime
environment. In terms of what platform you want to install java on whether it is a
linux platform or a mac os machine or a windows platform so like i said in the
beginning of the demo that today we are going to see how we can install this on a
windows machine. i 'm going to download the windows x64 installer here if you are
working on a linux machine or macos machine you can download those respective
installers as well so you can see the exe here. Java is going to unpack all the all
the libraries and all the runtime libraries which we discussed in the previous
lecture and put all that into the location which we specified to install java it
will also set up the rest of the prerequisites which are required to run java
successfully so looks like the java has been successfully installed. If you get a
message saying that java is not recognized as a command it means that Java is still
not successfully installed and something has gone wrong in your installation.
installing eclipse on a windows machine so the first thing which we need to do is
to download eclipse so for that i 'm just going to open my web browser and type
eclipse download press enter and then you need to find the link which says eclipse.
org downloads which is the first link in my search results. Eclipse is an open
source organization it works on donations so if you feel generous about it you can
also donate to it which will show here so we can move to the next step which is
about installing so you can see here i have an installer here an exe file basically
which i have pre-downloaded to showcase this demo. use that exe to showcase how we
can install it. The installation generally takes a bit of time to complete in some
cases so again it depends upon your in your computer's capacity and speed. If you
have a computer which is not very strong on configurations you can just be patient
and wait for some time and the installation will be finished once the installation
is finished you will see this launch option here.
Just go to file new and choose a kind of project you want to create whether it is a
maven project or enterprise application project or dynamic web project or just a
project. can check out a project from git you can import an existing project you
can go to the marketplace create a java web project. or you can just close this you
have a nice navigation project project explorer bar here. Java has these primitive
data types which store numbers are byte short int long float and double. byte is
the shortest possible data type value which you can use in java to store numbers
you can only store numbers within the range of minus 128 to plus 127. The next
bigger data type is short which is a bit bigger than byte and the next one is long
which is even bigger than int. Float and double have been created for use cases
whether where you want to store numeric values which have decimals which are