SIZ Education | Overview of JAVA programming language | by @faizan2sheikh

in Steem Infinity Zone2 years ago

Assalam-o-Alaikum, hope you all are doing good! We use mobile phones to use different apps. All of these apps perform different operations based on logical coding behind the scenes. The JAVA programing language helps us to write code that is cross-platform compatible. So, let's take a quick overview of this popular language.

image.png

Source

image.png

History

JAVA is an object-oriented, class-based high-level programming language developed by James Gosling in the year 1995. The syntax of JAVA was mainly inspired by C and C++ because these languages were very popular at that time. JAVA was designed to implement Write Once and Run Anywhere (WORA) approach because the developer desired to develop a language where coders only need to write the code once and run it across different platforms without any difficulty. This language was created for a company named "Sun microsystems". There was an oak tree in front of the developer's office, therefore JAVA was initially named "Oak", later the name was changed to green. Later on, it was given the name "JAVA" inspired by a coffee in Indonesia.


Source

image.png

Goals for the development of JAVA

The JAVA programming language was designed primarily keeping in mind the following features:

  • Simple and object-oriented
  • Robust and secure
  • Architecture neutral and portable
  • high performance
  • interpreted, threaded and dynamic

Lately, JAVA was used for developing android applications, due to this the popularity of JAVA sky-rocketed.

image.png

Basics of JAVA

Now I will walk you through a few basics of the JAVA programming language. First of all, let's begin with the classic example of hello world code.

class HelloWorld{
      public static void main(Strings[] args) {
             System.out.println("Hello World!")};
}
  • public - Here public is an access specifier which tells the scope of this function
  • static - this keyword allows us to run methods without creating their instances
  • void - this indicates that this function does not return any value
  • String[] args - represents the arguments supplied to the function
  • System.out.println - standard code to print anything on the terminal

The source code of JAVA is first compiled into byte code using a compiler named "JAVAC". Once the code is compiled into byte code it can be carried across different platforms and it works very similarly in different platforms. This code is executed by JAVA virtual machine according to platform specifications.

Comments in JAVA

You can comment your code in JAVA in following two ways:

SIngle Line Comment

// This is a single line comment

Multi-line Comment

/*
This
is 
a 
multi-line
comment
*/

image.png

Conclusion

I hope now you all have enough idea about JAVA and will learn this language in the future, let me know if you want me to post more content like this.

Regards, @faizan2sheikh

Thanks to the mods and @siz-official for serving the community!

Thank you for reading my post!

image.png

Sort:  
 2 years ago 

Thank you for your attention in siz community.

Please make power up of some steem and showing commitment to #club5050.

Report,

SteemexclusiveYes
Bit BotNo
Club5050No
PlagiarismNo
10 % to siz-officialYes

Thankyou for correction, actually I came after a break that's why it was expired, I have done power up now and now I am eligible, kindly update the info.

 2 years ago 

Good 👍

Update

Report,

SteemexclusiveYes
Bit BotNo
Club5050Yes
PlagiarismNo
10 % to siz-officialYes

Coin Marketplace

STEEM 0.27
TRX 0.11
JST 0.031
BTC 67879.12
ETH 3787.66
USDT 1.00
SBD 3.46