Categories
Java Programming

Java Programming Introduction

Java Programming

 

             Java is a programming language which helps us in writing commands(code) to make a computer do a particular task. Java is one of the many programming languages we use to instruct the computer. Other programming language include C, C++, Python and many more.We all know that computer is a dumb machine. It needs to be instructed how to perform any particular task and we use a programming language to achieve this.Java is one of such language the computer understands.Java is a mediator between us and our computer.So if you know java programming you will be able to teach your computer to execute tasks.It is used in different sectors. It can be used to instruct robots to carry out a particular task.In this case the robot has an operating system, just like a computer does, which allows it to be given instructions.Java programming is used to create android apps which we all use in daily basis. We all may not know but all androids applications running in the android phone uses java programming. Java is also used to create desktop applications which we use in daily basis.

             Java is one of the most powerful, cross-platform, object-oriented programming language which was created in 1995. Java is owned by Oracle and java is run in more than 3 billion devices.Java is used for different mobile applications, desktop applications, web applications, web servers and application servers, games, database connection and more.Java is popular as it works on various platforms including Windows, Mac, Linux etc.Java is one of the most popular programming languages in the world right now along with other languages like python, javascript etc.Java is open source, and free programming language.Java is very secure, fast and powerful.Java have a huge community of tens of million of developers. Object-oriented language java gives a clear structure to programs and allows reuse of code which helps in lowering the development costs. As java is close to C++ and C# it is easier for developers and programmers to switch to java and vice versa.Java programming is very popular in the world due to various key advantages which are as follows:

1.Object Oriented

2.Platform Independent

3.Simple

4.Secure

5.Architecture Neutral

6.Robust

7.Portable

         Basic code syntax for Java Program

                              public class firstProgram

                              {

                                             public static void main(String[] args)

                                                            {

                                                            System.out.println(“First Program of Java”);

                                                            }

                              }

                              Output: First Program of Java.

               We can use different Editors for writing java code. Many IDEs are available for java in the market, but for the begginers, we can use simple editors like Notepad, Notepad Plus, Netbeans, Eclipse etc. For writing java programs, we have to be careful while writing the syntax. We have to keep different things in mind while writing program in java. Following points have to be considered while writing a program.

1.Case Sensitivity

2.Class Names

3.Method Names

4.Program File Name

5.Public static void main(String[] args).

               Java Identifiers are names used for classes, variables and methods. We have to keep several things in mind for identifiers which are as follows.

1.Identifiers are case sensitive

2.Keyword can not be used as an identifier

3.Identifiers can have any combination of characters after the first character.

4.All identifiers should begin with a letter A to Z or a-z, currency character($) or an underscore(_).

  1. Legal Identifiers example: name, $age, _value,_1 etc
  2. Illegal Identifiers: 123abc,-salary, etc.

I have provided you a link to java crash course for you all. Go to this Link.