Java: Written for Beginners by a Beginner


Greetings fellow newbies!

I've written the following post in hopes of providing help and guidance within the world of Java through my own experiences. Below I have included some exposition of my own experience with learning new programming languages and how I have navigated the trials and tribulations that come with it.

Before we begin, please navigate to the following website through the link provided and go to the "Getting Started" tab. This will help you to install Java with simple instructions.

JAVA Tutorials

https://docs.oracle.com/javase/tutorial/index.html

    If you have previously dipped your toes into the world of programming languages, you have most likely heard the term "Hello World!". This is the first program you will ever complete as a beginner in any language. It is a simple, educational instruction for whatever language you are currently focused on and introduces the basics of your selected language.

       While first learning Java, I tried this program using Windows and my command window. If you would like to try the "Hello World!" program in Windows for yourself, please click the link below:

"Hello World!" for Windows

https://docs.oracle.com/javase/tutorial/getStarted/cupojava/win32.html

    I chose this route due to past difficulties I have faced when learning other languages. I usually struggle to get my code to work within command windows, so I challenged myself. After reading the above-provided tutorials, I had no problems executing the program. The simplicity of Hello World leaves much room for improvement while allowing the user to easily identify any issues within their code.

    If you find yourself having issues with the tutorials I've provided, please go ahead and click the link below for more assistance:

Common Issues

https://docs.oracle.com/javase/tutorial/getStarted/problems/index.html

Java: An Object-Oriented Program

To properly begin working with Java, you must first understand the basic concepts that make Java work. 

    Java is an Object-Oriented Programming(OOP) language, meaning that there are objects containing data and code that interact with one another. The principles that make up OOP are Encapsulation, Data Abstraction, Polymorphism, and Inheritance. Encapsulation ensures that there is limited direct access to data. Data Abstraction makes super-complex systems easier to manage by decomposing them into smaller components. Inheritance promotes relationships between classes by promoting the reuse of code. Polymorphism is simply known as "one name, many functions". This means there are numerous amount of methods within the same command that interact with data and files in different ways. I am mentioning these basic principles because it is essential to understand their concepts to properly execute code in Java. The relationships between these principles are integral to the success of your code. 

I hope this post has helped in beginning to understand Java as one of the most commonly used programming languages!


Comments