Presentation is loading. Please wait.

Presentation is loading. Please wait.

Java Programming for Beginners

Similar presentations


Presentation on theme: "Java Programming for Beginners"— Presentation transcript:

1 Java Programming for Beginners
The Key Concepts of Java as an Object-Oriented Programming Language

2 Java The Programming Language
Programming languages, like regular languages, are used to communicate. We use programming languages to instruct our computers how to carry out and complete different tasks on the computer, such as asking a new user to enter their name. Programming languages allow us to instruct a computer step-by-step how to manipulate data, collect input from users, display things on a screen, and more. There are several types of languages that are used in programming for completing a variety of tasks; however, we are going to discuss Java and the basic concepts of that specific language. Java is a statically-typed, object-oriented language.

3 What does Object- Oriented Mean?
Object-Oriented Programming, also known as OOP, consists of entities known as Objects. In order to create an object, you need to specify their structure and properties of the object in a class. We use classes to create a blueprint for individual objects. Object-oriented programming is useful in organizing code, it’s time efficient and it also protects your code from hackers.

4 OBJECTS In order to understand Object-Oriented Programming, you first need to understand what an Object is. Examples of real-world objects: Dog Phone Car (Example of a Robot object)

5 CLASSES As I mentioned before, we use classes to create the blueprint for an object. For example, there are hundreds of types of dogs. So, in order to create an individual object, we’d first create a class for that object, Class = Dog. The class would then ask for more information to create the blueprint for individual objects, such as name, breed, and other characteristics.

6 INHERITANCE Inheritance allows you to build subclasses of objects. If you were to create a class called “Animal”, you could then create a subclass for a dog, and so forth. CLASS IS “ANIMAL” The subclasses created will then inherit the “Animal” class and the characteristics that determine that its an animal, but then each subclass can focus exclusively on what makes a subclass unique, therefore creating more subclasses if desired. (Subclass) (Subclass)

7 CODE SPELLS As a Computer Science student, I’ve found there are a variety of resources online that are designed to break down Java so that even a child is able to learn the language. One of the coolest ideas I’ve found is called Code Spells. Code Spells is a game designed by five Computer Science Students from UCSD. It uses quests and game play to make learning interactive and fun. To learn more about Code Spells or if you’d like to download the game, visit the Code Spells website by clicking here.

8 HELPFUL RESOURCES FOR LEARNING JAVA YOUR WAY
COMMUNITY: Learning with a community is the best way to ensure accountability and support when you need help. Java.net has several helpful Java User Groups (JUGS) that Allow people to join, share knowledge, ask questions, etc. BOOKS: If you feel like you are better at learning from a book, then I recommend Java A Beginner's Guide 6th Edition by Herbert Schildt. This Book is organized, and packed full of easy to follow lessons and tutorials. VIDEOS: If you feel like you prefer learning by watching Videos, then there are several Videos on YouTube that are great for learning more. I personally like Unacademy, which Teaches concepts in a simple, every day type method. PODCASTS: Finally, if you prefer to learn by just listening, then there’s also a podcast available on iTunes via How to Program with Java Podcast .


Download ppt "Java Programming for Beginners"

Similar presentations


Ads by Google