JAVA SE 7
PROGRAMMING
NIIT ASANSOL CENTRE
ASANSOL
BY:
RICHA PANJIYARA
(1205068)
COURSE OBJECTIVES
Increase
familiarity with the object
oriented features of Java
Command line execution of Java
application
Use Collections framework
Implement Exception handling techniques
Implement I/O functionality
INTRODUCTION
Java programming language is :Simple
Object oriented
Portable
High performance
Secure
Multithreaded
TOOLS USED
JDK 7 : Including javac and JRE
Netbeans 7.0.1 : It supports Java SE 7
Platform
Java DB
Any Text Editor
OBJECT ORIENTED
PROGRAMMING
Object
Class
Inheritance
Abstraction
Polymorphism
Encapsulation
LANGUAGE BASICS
Variables
Operators
- Arithmetic ( +, -, /, *, % )
- Relational( >, <, >=, <=, !=, ==)
- Logical( ||, &&, ! )
- Unary( ++, -- )
- Assignment( =, +=, -=, *=, /=, %= )
Expressions, statements and blocks
Control Flow Statements
- Decision making statements(if, if else, switch)
- Looping statements(do while, while, for )
- Branching statements(break, continue)
CLASSES AND OBJECTS
Declaring
classes
Declaring member variables
Defining methods
Providing constructors for classes
Passing information to method or
constructor
Creating objects
Using objects
MORE ON CLASSES
Returning
a value from a method
Using the this keyword
Controlling access to members of a class
Understanding class members
Initializing fields
Nested classes
INTERFACES AND INHERITANCE
Defining
an interface
Implementing an interface
Using an interface as a type
Multiple inheritance of state,
implementation and type
Overriding methods
Polymorphism
Hiding fields
INHERITANCE
The
super keyword
Object as a Superclass
Final classes and Methods
Abstract Methods and classes
NUMBERS AND STRINGS
The
Numbers classes
Formatting numeric print output
Beyond basic arithmetic
Strings
Converting between numbers and strings
Manipulating characters in a string
Autoboxing and unboxing
EXCEPTION HANDLING
Exception
The
try block
The catch block
The finally block
The try-with-resources statement
The throw keyword
Creating Exception Classes
COLLECTONS
The
Collection Interface
The Set Interface
The List Interface
The Queue Interface
The Deque Interface
The Map Interface
INPUT/OUTPUT
Byte
Streams
Character Streams
Scanning and Formatting
I/O from command line
Data Stream
Object Stream
THANK YOU