About This Chapter
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.
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.
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.
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.
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.
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.
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.
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!
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.
Other chapters within the FTCE Computer Science K-12 (005): Study Guide & Practice course
- History & Social Impacts of Computing
- Hardware & Systems Technology
- Computer Science Systems Software
- Computer Science Application Software
- Basics of Network Systems Technology
- Data, Storage & Algorithms
- Basics of Computer Programming
- Programming Design, Verification & Language
- Computer Science Technology in the Classroom
- Instructional Resources for Computer Science Teachers
- FTCE Computer Science K-12 (005) Flashcards