×
Everyone has a talent and so do you. Let it shine out, is all you have to do.
--Your friends at LectureNotes
Close

Core Java

by Kishan Chandra
Type: NoteInstitute: RD & DJ College Munger Course: MCA Specialization: Master of Computer ApplicationsOffline Downloads: 5Views: 223Uploaded: 5 months agoAdd to Favourite

Share it with your friends

Suggested Materials

Leave your Comments

Contributors

Kishan Chandra
Kishan Chandra
INTRODUCTION OF JAVA PROGRAMMING Kumar Kishan Chandra Ast. Prof. Rd & DJ College Munger
Contents xii i 1 The Mental Landscape 1 Machine Language . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.1 . . . 1 Asynchronous Events . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.2 . . . 3 The Java Virtual Machine . . . . . . . . . . . . . . . . . . . . . . . . . . . . 1.3 . . . 6 Building Blocks of Programs . . . . . . . . . . . . . . . . . . . . . . . . 1.4 . . . . . 8 Object-oriented Programming . . . . . . . . . . . . . . . . . . . . . . . . 1.5 . . . . . 9 The Modern User Interface . . . . . . . . . . . . . . . . . . . . . . . . . . 1.6 . . . . 12 1.7 The Internet . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 14 Quiz on Chapter 1 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 17 2 Names and Things 19 The Basic Java Application . . . . . . . . . . . . . . . . . . . . . . . . . . 2.1 . . . . 19 Variables and Types . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.2 . . . 22 2.2. 1 Variables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 23 2.2. Types and Literals . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 .. 24 2.2. Variables in Programs . . . . . . . . . . . . . . . . . . . . . . . . . . 3 ... 27 Objects and Subroutines . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.3 . . . 28 2.3. Built-in Subroutines and Functions . . . . . . . . . . . . . . . . . 1 ..... 29 For Full Java Notes Contact Me at 9430949561
2.3. Operations on Strings . . . . . . . . . . . . . . . . . . . . . . . . . . . 2 .. 32 2.3. Introduction to Enums . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 .. 34 Text Input and Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.4 . . 36 2.4. A First Text Input Example . . . . . . . . . . . . . . . . . . . . . . . 1 ... 37 2.4. 2 Text Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 38 2.4. TextIO Input Functions . . . . . . . . . . . . . . . . . . . . . . . . . 3 ... 39 2.4. Formatted Output . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 . 41 2.4. Introduction to File I/O . . . . . . . . . . . . . . . . . . . . . . . . . . 5 .. 43 Details of Expressions . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 2.5 . . . 44 2.5. Arithmetic Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . 1 .. 45 2.5. Increment and Decrement . . . . . . . . . . . . . . . . . . . . . . . 2 .... 46 2.5. Relational Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . 3 .. 46 2.5. Boolean Operators . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 4 .. 47 2.5. Conditional Operator . . . . . . . . . . . . . . . . . . . . . . . . . . . 5 .. 48 2.5. Assignment Operators and Type-Casts . . . . . . . . . . . . . . 6 ...... 48 2.5. Type Conversion of Strings . . . . . . . . . . . . . . . . . . . . . . 7 .... 50 2.5. Precedence Rules . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . 8 . 50 Programming Environments . . . . . . . . . . . . . . . . . . . . . . . . . . 2.6 . . . . 51 For Full Java Notes Contact Me at 9430949561
iii For Full Java Notes Contact Me at 9430949561

Lecture Notes