A Beginners Guide to Object Oriented Programming with Java




A Beginners Guide to Object Oriented Programming with Java


What is object-oriented programming?

Object-oriented programming (OOP) is a computer programming model that organizes software design around data, or objects, rather than functions and logic.

OOP focuses on the objects that developers want to manipulate rather than the logic required to manipulate them. This approach to programming is well-suited for programs that are large, complex and actively updated or maintained.

The organization of an object-oriented program also makes the method beneficial to collaborative development, where projects are divided into groups. Additional benefits of OOP include code reusability, scalability and efficiency.


What is Java?

Java is a general-purpose, class-based, object-oriented programming language designed for having lesser implementation dependencies. It is a computing platform for application development. Java is fast, secure, and reliable. It is widely used for developing Java applications in laptops, data centers, game consoles, scientific supercomputers, cell phones.




How to install Java?

The easiest way is to install an IDE (integrated development environment). The most popular IDE for Java is Eclipse and you may download it from here:  Eclipse download


How to write a Hello World program?

For creating the easy Hello World program, please follow these steps:
  • Open Eclipse
  • From the File menu, go to New >>  Java project
  • Give your project a Name "hellomynameis" and click Finish
  • From the File menu, go to New >>  Class
  • Give your class a Name "hellomynameis", select Create Main, and click Finish
  • In the class, write the following code:

package hellomynameis;

public class hellomynameis {

public static void main(String[] args) {
System.out.println("Hello! My name is Dennis!");
}

}

  • From the File menu, select Run
  • The console window will display "Hello! My name is Dennis!"

Congratulations! You have created your first Java program!


Java Tutorials:



Welcome to the wonderful world of Java




Comments

Popular posts from this blog

HOA Election & Voting Web Apps

About Me

Homeowner Participation and Input in HOAs