Basic Java Commands

Basic Java Commands
Written by Sagar RabidasNovember 24, 2021
5 min read
java
0 VIEWS 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWS SHARE
Sagar Rabidas

Software Developer

In this blog, we will discuss basic Java Commands.

Introduction to Basic Java Commands

Java is a multi-motive, fashionable computer programming language that has the first-rate amalgamation of being class-primarily based and object-orientated. It doesn’t have a plethora of implementation dependencies too. Today, nearly in every realm, we can see java being within the picture. This language presents particularly three computing systems viz. J2se, j2me, j2ee. That is one of the maximum famous customer-server application-based programming languages with a java development kit comprising of a java runtime environment and other utilities. It consists of a java digital device and a bytecode, making it viable for this language to get compiled and finished at any platform and any computer architecture. Java is supported via a few development environments which include eclipse, IntelliJ, BlueJ, Netbeans, and so forth., but there are some fundamental commands which can be carried out via terminal or command spark off or some syntax utilized in programming. In this tutorial, we are going to discuss one kind of java command.

Basic Java Commands

The basic commands are as explained below:

  • Java –version:

This is one of the very basic Java commands which is used to check the version of java installed on your machine. This is also used to ensure whether the installation and the PATH setting of variables are done rightly.

blogpost

  • Javac –version:

This command is used to tell you the compiler version, which is responsible for compiling the source code. This also is a part of the Java Development Kit, popularly known as JDK. Basic Java Commands 2

blogpost

  • Where is:

This Java command is used to find the specific component within the directory. In the below case, we have taken into consideration javac.

blogpost

To execute a program once it has been converted into bytecode, we make use of Java and then the program name. In the below example, we have taken the program with the name Hello World.

blogpost

  • Echo:

This echo command is used in Java and is a must-know command as it helps display the data of a particular file. Generally, this is used to check the PATH variables.

blogpost

  • Main:

As the name suggests, this is the program’s main function where the compiler first reaches and executes the portion of it.

main

blogpost

  • Public:

This is an access modifier in java that is used to define what level of access the program controls would have. Public means that the class is publically available.

blogpost

  • Class:

It is a logical entity and is often said to be the blueprint of the object. This contains functions and other data members in a single entity called class.

blogpost

  • Object:

Everything in Java is an object as it is the only physical entity of which everything is comprised. It is the combination of procedures and data working on the already available data.

blogpost

  • Static:

This is a java keyword that ensures that the method of the function block can be called without making use of an object.

blogpost

java
database
0 VIEWS 0 LIKES 0 DISLIKES SHARE
0 LIKES 0 DISLIKES 0 VIEWS SHARE
Was this blog helpful?
You must be Logged in to comment
Code Block
Sagar Rabidas
Software Developer
162 Blog Posts
15 Discussion Threads
Trending Categories
15
Software39
DevOps45
Frontend Development24
Backend Development20
Server Administration17
Linux Administration24
Data Center24
Sentry24
Terraform21
Ansible29
Docker28
Penetration Testing14
Kubernetes16
NGINX19
JenkinsX17
Techiio

Techiio is on the journey to build an ocean of technical knowledge, scouring the emerging stars in process and proffering them to the corporate world.

Follow us on:

facebooklinkdeintwitter

Subscribe to get latest updates

You can unsubscribe anytime from getting updates from us
Copyright techiio.com @2020 Kolkata, India
made with by Abhishek & Priyanka Jalan
Copyright techiio.com @2020
made with by Abhishek & Priyanka Jalan