Tuesday, February 27, 2018

Java Programming Language

When I start programming I used to use C in my first programs. After getting to know the OOP (Object-Oriented-Programming), and knowing how a class work, I started with Java. Now, what's Java and what can I do with it?

 Java Definition

 

 Java is built on C++ with a simplest way to deal with; using java you can easily write computer instruction based using English-based commands. In other word, in C you must write many functions step by step to reach what you want. Instead, using Java you can simply use predefined functions by simply declaring an object of a specific type. Like each programming language, Java has a set of rules known as syntax. I should also add that Java was created by a team led by James Gosling in the early nineties.


Why choosing Java?

 

 1. Java provides a very rich API (Application Programming Interface). When I say API, I mean a good Graphical User Interface *GUI* application that takes the user request by a certain form and tells the system what you want to do in the back-end and returns the response back to you. A good example on this, is javaFX where you can design your application like you want, and control how to deal with it in its controller where programmer should write codes to deal with it. You may connect your application to a database system where you can save all user's information.

2. Java is one of  the fastest languages. If we take the benchmarks game results, you'll notice the the code written in Java is more than 10x as fast as PHP, Ruby, Python, etc.


3. Inside Java, there is something called exception-handling;  to do this you should include a try-catch block where inside of try you set your code and inside catch you catch any type of exceptions. The main advantage of this, is that the program will not stop once you catch the write type of exception that can be thrown inside the try code.

4. Java has platform independence. Programs will work regardless of the machines executed on. It doesn't care about the operating system or the hardware of the computer it's running on.

5. Pay matters: Recent reports show that Java programmers are among the highest paid programmers in the industry. Java is one of the most popular languages also, if you do a simple research you'll find that most of the people knows about Java. For this reason, it's lucrative to have Java skills on your resume. It's also important to note, that Indeed.com reports that the average java developer salary for job posting in February 2016 in the US is 102,000$.

6. Networking: You can easily write a chat application using Java socket programming.

7. Using Java you can write apps for the iPhone  whereas objective C is limited to the iPhone.

To end with, if you like to learn programming using java you can be taught by watching this series: https://www.youtube.com/watch?v=B8gMEV8GKbg&list=PLyRiRUsTyUXhUXoOPEdMZWhGpGeSQFZgH

No comments:

Post a Comment