Core Java: Essential Features 08/05/2015 Kien Tran.

Slides:



Advertisements
Similar presentations
Portability and Safety Mahdi Milani Fard Dec, 2006 Java.
Advertisements

©TheMcGraw-Hill Companies, Inc. Permission required for reproduction or display. Chapter 8 Exceptions and Assertions.
Exceptions Ensuring program reliability. Program correctness The term program correctness refers to a program’s working as advertised; that is, it produces.
Liang, Introduction to Java Programming, Eighth Edition, (c) 2011 Pearson Education, Inc. All rights reserved Chapter 13 Exception Handling.
EXCEPTIONS. What’s an exception?? Change the flow of control when something important happens ideally - we catch errors at compile time doesn’t happen.
Java How to Program, 9/e CET 3640 Professor: Dr. José M. Reyes Álamo © Copyright by Pearson Education, Inc. All Rights Reserved.
C++ Training Datascope Lawrence D’Antonio Lecture 3 An Overview of C++
Scott Grissom, copyright 2004Ch 3: Java Features Slide 1 Why Java? It is object-oriented provides many ready to use classes platform independent modern.
COMS S1007 Object-Oriented Programming and Design in Java August 7, 2007.
Course Map The Java Programming Language Basics Object-Oriented Programming Exception Handling Graphical User Interfaces and Applets Multithreading Communications.
12.1 Exceptions The limitations of traditional methods of exception handling Error conditions are a certainty in programming Programmers make.
Introduction Who we are How we’re going to help: Java and course- related material Subsribe to mailing list: COMP 346:
50.003: Elements of Software Construction Week 5 Basics of Threads.
Java Course Outline Kumar Harshit, USW. Course Description Teaches students to program using the Java programming language with the help of the Netbeans.
Copyright © 2003 ProsoftTraining. All rights reserved. Sun Certified Java Programmer Exam Preparation Guide.
Comparison of OO Programming Languages © Jason Voegele, 2003.
Java and C++, The Difference An introduction Unit - 00.
What is an exception? An exception is: – an event that interrupts the normal processing of the program. –an error condition that violates the semantic.
Liang, Introduction to Java Programming, Seventh Edition, (c) 2009 Pearson Education, Inc. All rights reserved Chapter 18 Exception Handling.
Exception Handling 1. Introduction Users may use our programs in an unexpected ways. Due to design errors or coding errors, our programs may fail in unexpected.
CIS 270—Application Development II Chapter 13—Exception Handling.
CSM-Java Programming-I Spring,2005 Objects and Classes Overview Lesson - 1.
1 Review of Java Higher Level Language Concepts –Names and Reserved Words –Expressions and Precedence of Operators –Flow of Control – Selection –Flow of.
CORE JAVA
Java ProgrammingtMyn1 Java Programming Timo Mynttinen Mikkeli University of Applied Sciences.
Class 14: Object-Oriented Programming Fall 2010 University of Virginia David Evans cs2220: Engineering Software.
Selected Topics in Information Technology Programming Language - JAVA Semester 1/2554.
Exception. Runtime Error Consider the following program: public class BadArray { public static void main(String[] args) { // Create an array with three.
Java Software Solutions Lewis and Loftus Chapter 14 1 Copyright 1997 by John Lewis and William Loftus. All rights reserved. Advanced Flow of Control --
VB.Net - Exceptions Copyright © Martin Schray
Generics and Collections. Introduction Generics New feature of J2SE 5.0 Provide compile-time type safety Catch invalid types at compile time Generic methods.
OOP and Dynamic Method Binding Chapter 9. Object Oriented Programming Skipping most of this chapter Focus on 9.4, Dynamic method binding – Polymorphism.
Introduction to Object Oriented Programming CMSC 331.
C# Versus Java Author: Eaddy, Marc Source: Software Tools for the Professional Programmer. Dr. Dobb's Journal. Feb2001, Vol. 26 Issue 2, p74 Hong Lu CS699A.
Exception Handling Unit-6. Introduction An exception is a problem that arises during the execution of a program. An exception can occur for many different.
OOP: Encapsulation,Abstraction & Polymorphism. What is Encapsulation Described as a protective barrier that prevents the code and data being randomly.
Practice Session 9 Exchanger CyclicBarrier Exceptions.
Parts of JAVA 1www.gowreeswar.com. Features of JAVA 2www.gowreeswar.com.
JAVA COURSE LESSON2 BY OMPUTER ENGINEEING ASSOCIATION.
Types in programming languages1 What are types, and why do we need them?
Copyright © 2015 Curt Hill Java for Minecraft Those things you should know.
Pengantar OOP Class-Java. 2 Software Development Tools Using Sun Java SDK alone Source File(s) (.java) Programmer Compiler (javac) Class File(s) (.class)
Sadegh Aliakbary Sharif University of Technology Spring 2011.
1 Features of Java (2) CS 3331 Sections 4.5 and 4.6.
Programming & Debugging. Key Programming Issues Modularity Modifiability Ease of Use Fail-safe programming Style Debugging.
Java 프로그래밍 II 한상철 (Han, Sangchul) 상허연구동 102 호 ( )
Singleton Academy, Pune. Course syllabus Singleton Academy Pune – Course Syllabus1.
Exceptions and Handling
C# Fundamentals An Introduction. Before we begin How to get started writing C# – Quick tour of the dev. Environment – The current C# version is 5.0 –
And other languages…. must remember to check return value OR, must pass label/exception handler to every function Caller Function return status Caller.
Software Development Cycle From Wikipedia: fe-cycle
CS 151: Object-Oriented Design November 19 Class Meeting Department of Computer Science San Jose State University Fall 2013 Instructor: Ron Mak
Exception. Agenda Exception. Handling Exceptions. The finally Clause.
Features of.net Language independent Object oriented program Multi threading Exception handling Drag and drop Linq
CSC 520 – Advanced Object Oriented Programming, Fall, 2010 Thursday, September 30 Week 5, Generics and Inheritance Techniques, Meyer Ch. 10 & 16.
JAVA TRAINING IN NOIDA. JAVA Java is a general-purpose computer programming language that is concurrent, class-based, object-oriented and specifically.
Mind Q Systems Leader s In Training /7, 2nd Floor, Srinivasa Nagar Colony (W) Above HDFC Bank, S.R. Nagar Hyderabad Tel: /92.
Exception Handling. You learned that there are three categories of errors: syntax errors, runtime errors, and logic errors. Syntax errors arise because.
1 Topic 5 Polymorphism "“Inheritance is new code that reuses old code. Polymorphism is old code that reuses new code.”
Java Expert Session By: Prof. Mehul Raval Prof. Adarsh Patel Prof. Mihir Suthar.
Java Programming Language
Multithreading in Java
Inheritance Often, software encapsulates multiple concepts for which some attributes/behaviors overlap E.g. A computer (role-playing) game has: Monsters:
Exceptions An exception signals an error, and has the ability to propagate upward through the call stack for easier management To “raise” an exception,
Programming in Java Text Books :
Object-Oriented Programming
Polymorphism CT1513.
Java Programming Course
21 Threads.
Final Jim Brucker.
Presentation transcript:

Core Java: Essential Features 08/05/2015 Kien Tran

Outline Defining classes Data structure Comparator and comparable Generics Error handling Multi-threading

Defining classes Encapsulation Inheritance Polymorphism Overloading Overriding Static methods and static variables References and class parameters Using and misusing references

Data structure Array Collection – List – Set Map

Comparator and comparable Comparator Comparable

Generics Generic classes & generic methods Wildcards Bounded wildcard

Error handling Compiler and runtime error Stack trace Exception handling – Try/catch clause – Throws clause – Finally clause

Multi-threading Thread & Runnable Sleeping Wait & notify