Ch 9: Basics of Programming in Java

About This Chapter

If you're looking for a quick way to review the basics of programming in Java, you're in the right place. This self-paced chapter offers short Java lessons that can be used for test preparation, professional development, independent learning and more.

Basics of Programming in Java - Chapter Summary

Review the lessons in this chapter to refresh your understanding of basic Java programming concepts. Taught by expert instructors, this chapter breaks down terminology and methods related to essential components of the Java programming language, including Java statements, primitive data, inheritance and polymorphism. When you're finished with the chapter, you should be able to:

  • Define Java statements and methods
  • Differentiate between string and primitive data types
  • Perform arithmetic operations in Java
  • Interpret inheritance syntax
  • Differentiate between polymorphism and inheritance in Java

To help you remember key concepts from the lessons, we've included lesson-specific quizzes as well as a comprehensive multiple-choice exam. If you get stuck or need any clarification on a lesson topic, simply use the chapter's handy Ask the Expert feature. To make your studying experience flexible and convenient, we've made these materials available online at any time of day or night.

7 Lessons in Chapter 9: Basics of Programming in Java
Test your knowledge with a 30-question chapter practice test
Java Statements: Definition & Examples

1. Java Statements: Definition & Examples

In this lesson, we'll learn the definition of a Java statement and discuss some of the different types. We'll also explore some working code examples for this important programming concept.

Methods in Java: Definition & Example

2. Methods in Java: Definition & Example

Java programs have methods that have a name and contain a set of statements or instructions. In this lesson, we'll learn how the Java programming language uses methods and the rules and syntax we need to employ when using them.

Java: Primitive Data Types

3. Java: Primitive Data Types

As a programming language, Java uses two basic data types: primitive and reference/object. In this lesson, we'll have a brief look at each of Java's primitive data types as well as their use.

Java: String Data Type

4. Java: String Data Type

In Java, strings are not chased by cats. A string is a sequence, or string, or single characters. This lesson will define the string data type, and provide some examples of its use.

Java: Arithmetic Operators

5. Java: Arithmetic Operators

A large chunk of programming involves math, from addition to multiplication to modulo operations. These math operations need not be confusing or overly complex. This lesson will cover the arithmetic operators in Java and provide working code examples.

Inheritance in Java: Definition, Example & Syntax

6. Inheritance in Java: Definition, Example & Syntax

Inheritance in Java is not an estate or a classic car from a long-lost relative. It means certain classes can share attributes from other classes. Here, we'll learn the concept and the syntax for this powerful feature of Java.

Inheritance vs. Polymorphism in Java

7. Inheritance vs. Polymorphism in Java

Cool concepts come with cool names: inheritance and polymorphism. In this lesson we'll cover how Java harnesses inheritance to create families of classes and explain how you can create methods without having to know what object you're using!

Chapter Practice Exam
Test your knowledge of this chapter with a 30 question practice chapter exam.
Not Taken
Practice Final Exam
Test your knowledge of the entire course with a 50 question practice final exam.
Not Taken

Earning College Credit

Did you know… We have over 200 college courses that prepare you to earn credit by exam that is accepted by over 1,500 colleges and universities. You can test out of the first two years of college and save thousands off your degree. Anyone can earn credit-by-exam regardless of age or education level.

To learn more, visit our Earning Credit Page

Transferring credit to the school of your choice

Not sure what college you want to attend yet? Study.com has thousands of articles about every imaginable degree, area of study and career path that can help you find the school that's right for you.

Support