JAVA Programming - I
0%
Course Title: JAVA Programming - I
Course No: IT 216
Nature of the Course: Theory + Lab
Semester: 3
Credit Hours: 3
Course Description
Course Objectives
Course Contents
1. Java's Lineage
2 hrs
2.1. Object-Oriented Programming
- Two Paradigms
- Abstraction
- The Three OOP Principles
2.2. Lexical Issues
- Whitespace
- Identifiers
- Literals
- Comments
- Separators
- The Java Keywords
3.3. Integers
- Byte, short, int, long
3.4. Floating point Types
- Float, double
3.7. A closer Look at Literals
- Integer Literals, Floating-Point literals, Boolean Literals, Character Literals, String Literals
3.8. Variables
- Declaring a Variable, Dynamic Initialization, The Scope and Lifetime of Variables
- Type conversions and Casting, Casting Incompatible types
3.10. Arrays
- One Dimensional Arrays, Multidimensional arrays, Alternative Array Declaration syntax
4. Operators
4 hrs
4.2. The Bitwise operators
- The bitwise logical operators
- The left shift, right shift, Unsigned Right shift, bitwise operator compound assignments
4.4. Boolean logical operators
- Short-circuit logical operators
- The ? operator
5.1. Java's Selection statements
- If...., switch....
5.2. Iteration statements
- while, do-while, for, the for-each version of the for loop, nested loops
6.1. Class fundamentals
- The general form of a class, a simple class
6.4. Introducing methods
- Adding a method to the box class, returning a value, adding a method that takes parameters
7.4. Varargs: variable-length arguments
- Overloading vararg methods, varargs and ambiguity
8. Inheritance
3 hrs
12.1. Enumerations
- Fundamentals, the values() and valueOf() methods, Java Enumerations Are class types, enumerations inherit Enum
12.3. Autoboxing
- Autoboxing and methods, autoboxing/unboxing occurs in expressions, autoboxing/unboxing Boolean and character values, autoboxing/unboxing helps prevent errors
12.4. Annotations
- Annotation basics, specifying a retention policy, obtaining annotations at run time by use of reflection
13. String handling
3 hrs
13.3. Character Extraction
- charAt(), getChars(), getBytes(), toCharArray()
13.4. String comparison
- equals() and equalsIgnoreCase(), regionMatches(), startsWith() and endsWith(), equals() versus ==, compareTo
13.5. Modifying a String
- Substring(), concat(), replace(), trim()
14. Input/output
4 hrs
14.5. The byte Streams
- InputStream, OutputStream, FileInputStream, FileOutputStream, PrintStream, DataOutputStream and DataInputStream, RandomAccessFile
14.6. The Character Streams
- Reader, Writer, FileReader, FileWriter, PrintWriter
14.8. Serialization
- Serializable, Externalizable, ObjectOutput, ObjectOutputStream, ObjectInput, ObjectInputStream
Text Books
- 1.Thinking in JAVA- Bruce Fikal
- 2.Complete reference for JAVA 2
- 3.Schaum's outline programming in C++- John Hubbard