Java Se 7 Programming 1
Java Se 7 Programming 1
PROGRAMMING
NIIT ASANSOL CENTRE
ASANSOL
BY:
RICHA PANJIYARA
(1205068)
COURSE OBJECTIVES
Increase
INTRODUCTION
Java programming language is :Simple
Object oriented
Portable
High performance
Secure
Multithreaded
TOOLS USED
Java DB
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
Declaring member variables
Defining methods
Providing constructors for classes
Passing information to method or
constructor
Creating objects
Using objects
MORE ON CLASSES
Returning
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 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