Chapter 4
Premium

1 Page
81 Views
Unlock Document

Department
Information Technology Management
Course
ITM 200
Professor
Vikraman Baskaran
Semester
Summer

Description
Khushi Sharma Thursday May 10 , 2012 Chapter 4 Inputs and Strings Adding Two Numbers: String Variables -variables are int, char and double these are ‘pigeon holes’ in the computer’s memory into which you can place literal values which are integers and characters and floating point numbers; these are called primitive types variables -String class from the java standard library is used for this purpose -in order to be useful variable must be created to reference a string object  String myName; -notice the S in String is upper case, as we already know class name should always begin with a upper case Primitive Variable vs. Reference Variables -string variables are an example of so called reference variables -reference variables does not actually contain its associated data, but contains a reference to the data -you can represent the reference as an arrow, pointing to the data -primitive variables contain the value that they have been assigned (example: number 25)  The value 25 will be stored in the memory location associated as variable number  Objects are not stored under variables BUT they are referenced by variables Type of an Object -type of an object reference variable will always be the name of a class and will al
More Less

Related notes for ITM 200

Log In


OR

Join OneClass

Access over 10 million pages of study
documents for 1.3 million courses.

Sign up

Join to view


OR

By registering, I agree to the Terms and Privacy Policies
Already have an account?
Just a few more details

So we can recommend you notes for your school.

Reset Password

Please enter below the email address you registered with and we will send you a link to reset your password.

Add your courses

Get notes from the top students in your class.


Submit