Getting Started with Java

 


My experience installing and using Java for the first time was very smooth. I simply followed the instructions step-by-step from the following resource: http://docs.oracle.com/javase/tutorial/index.html

Once you install the Java programming language, you will need an IDE (integrated development environment) to write your code. There are multiple options for you to choose from, which you can from the link above. I chose to install and try two IDEs, Eclipse and NetBeans. For this first project, I chose to use NetBeans. In order to complete my “Hello, My Name Is” program, I follow the tutorial at this link: http://docs.oracle.com/javase/tutorial/getStarted/index.html.

Java uses object-oriented programming, which is a method of coding focused on objects. There are four principles common to object-oriented programming. These principles are inheritance, polymorphism, abstraction, and encapsulation.

Inheritance is a principle in which acquires the properties of its parent object. This allows for code in Java to be reusable.

Polymorphism is a principle that allows a single task to be performed in different ways. Javatpoint.com (https://www.javatpoint.com/java-oops-concepts) gives some helpful real-world analogies of this principle, such as the “speak” being performed differently by a human, a dog, and a cat.

Abstraction is a principle that focuses on showing the functionality of a task while hiding its internal workings. This helps keep the code clean and easy to recall.

Encapsulation is a method of bundling code and data together into a single unit. This again helps make Java easy to read and understand.

Java is one of the most popular object-oriented programming languages used for building games and applications. There are many tutorials available to help you learn more about Java. I found a very useful video tutorial that is only 14 minutes long but provides a good understanding of how to navigate through Java. You can find it here: https://www.youtube.com/watch?v=RRubcjpTkks

Comments

Popular Posts

Programming Languages

Tech Topic Connection: Cyber Security

Network Security