Newbie to Newbie - Java 101

          



When first delving into Java, a programmer must download the Java development kit (JDK) from the Oracle website and choose the integrated development environment (IDE) where they will build their code. Downloads must be done through a trusted source to keep the system secure. The version needed will depend upon the user's operating system. The install programs will give step-by-step instructions for easy installation, and additional support is provided in the instructions on the website. When installing these items, the JDK should be downloaded first. There are several options for IDEs, such as Eclipse and NetBeans, so users should consider their preferences when choosing their IDE. Next, it is essential to understand what kind of programming language Java is and the basic concepts. Below is a summary of the fundamental concepts of Java, with links provided for further understanding.

Java is an object-oriented programming language (OOP). An OOP may be a powerful tool if implemented correctly, as it can add extra security to a computer system. An object is comprised of a state and behavior and may be thought of as a real-world entity. A state refers to the current situation, whereas behavior characterizes an action or a change of state (Oracle, 2015). A state is represented in fields, and behavior is signified as a method. An interface provides a way to change an object's behavior (like the button on a remote is used to change the channel on a television). A class denotes the category of an object that identifies the object's data type and methods. A class allows similar objects to be grouped. A class may be partitioned into subclasses. The initial class is referred to as a superclass. There may be only one superclass but infinite subclasses. A package is a namespace that combines a set of associated classes and interfaces.

Object-oriented programming has four major principles: encapsulation, data abstraction, polymorphism, and inheritance. Encapsulation offers protection by hiding the state of an object within a class. In encapsulation, an accessor is used for a public method to retrieve the data about the state of an object, and a mutator is used to transform the state of an object while concealing the implementation used for transformation (Raymondlewallen, 2005). Data abstraction is developing an object that decomposes complex systems into smaller elements. Inheritance allows a subclass to receive regularly used state and behavior from other classes (Oracle, 2015). Inheritance enables polymorphism to occur. In polymorphism, the inherited capabilities (fields and methods) are used to execute different tasks (Raymondlewallen, 2005).

 

 

References

Agarwal, P. & Meherwal, N. (2023, May 4). Packages in Java. Geeks for Geeks.

https://www.geeksforgeeks.org/packages-in-java/

IBM. (2021, March 1). Component Behaviors for Java Developers. IBM.

https://www.ibm.com/docs/en/db2/9.7?topic=components-component-behaviors

Miglani, G. (2023, September 22). Classes and Objects in Java. Geeks for Geeks.

https://www.geeksforgeeks.org/classes-objects-java/

Java OOPs concepts. (n.d.). Retrieved from http://www.javatpoint.com/java-oops-concepts

Java T Point. (n.d.). Inheritance in Java. Java T Point.

https://www.tutorialspoint.com/java/java_encapsulation.htm

Java T Point. (n.d.). Object Definition in Java. Java T Point.

 https://www.javatpoint.com/object-definition-in-java

Oracle. (2015). The Java tutorials: Lesson: Object-Oriented Programming Concepts. Retrieved

from http://docs.oracle.com/javase/tutorial/java/concepts/index.html

PC Mag. (n.d.). State. PC Magazine. https://www.pcmag.com/encyclopedia/term/state

Rajput-Ji. (2022, March 28). What is the Difference Between Field, Variable, Attribute, and

Property in Java. Geeks for Geeks. https://www.geeksforgeeks.org/what-is-the-difference-between-field-variable-attribute-and-property-in-java/

Raymondlewallen. (2005, July 19). 4 Major Principles of Object-Oriented Programming [Blog

Post]. World Documents. https://vdocuments.net/4-major-principles-of-object.html

Tutorials Point (n.d.). Java – Encapsulation. Tutorials Point.

https://www.tutorialspoint.com/java/java_encapsulation.htm

Tutorials Point. (n.d.). Java – Interfaces. Tutorials Point.

https://www.w3schools.com/java/java_methods.asp

W 3 Schools, (n.d.). Java Abstraction. W 3 Schools.

https://www.tutorialspoint.com/java/java_encapsulation.htm

W 3 Schools. (n.d.) Java Polymorphism. W 3 Schools.

https://www.w3schools.com/java/java_polymorphism.asp#:~:text=Polymorphism%20means%20%22many%20forms%22%2C,methods%20to%20perform%20different%20tasks.

W 3 Schools (n.d.). Java Methods. W 3 Schools.

https://www.w3schools.com/java/java_methods.asp

Comments

Popular posts from this blog

Data Structure and Algorithm Design and Efficiency

Information Technology Careers