CSC 1350 Chapter : Section 2.1-2.3

8 views5 pages
15 Mar 2019
School
Course
Professor

Document Summary

Procedural programming & object oriented programming are the two types of programming. Types: a type defines a set of values and the operations that can be carried out on the values. Java has separate types for integers and floating-point numbers. Object types = are capitalized; has to do with a class doesn"t just involve data or attributes but also methods or actions that can be applied. Primitive types = aren"t capitalized; just data no methods associate with it. A value such as 13 or 1. 3 that occurs in a java program is called a number literal. Use a variable to store a value that you want to use at a later time. A variable has a type, a name, and a value: Printstream printer = system. out; int width = 13; Variables can be used in place of the values that they store: // same as system. out. println ( hello, world! ) printer. println (width);

Get access

Grade+
$40 USD/m
Billed monthly
Grade+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
10 Verified Answers
Class+
$30 USD/m
Billed monthly
Class+
Homework Help
Study Guides
Textbook Solutions
Class Notes
Textbook Notes
Booster Class
7 Verified Answers

Related Documents

Related Questions