Table of Contents. Chapter 1 Getting Started with Java SE 7 1. Chapter 2 Exploring Class Members in Java 15. iii. Introduction of Java SE 7...

Similar documents
CONTENTS. Chapter 1 Getting Started with Java SE 6 1. Chapter 2 Exploring Variables, Data Types, Operators and Arrays 13

Introduction... xv SECTION 1: DEVELOPING DESKTOP APPLICATIONS USING JAVA Chapter 1: Getting Started with Java... 1

Syllabus & Curriculum for Certificate Course in Java. CALL: , for Queries

Mobile MOUSe JAVA2 FOR PROGRAMMERS ONLINE COURSE OUTLINE

JAVA. A. Zakiuddin Ahmed. M.Sc.,M.Phil M.S.(Edn), PGDCSM, Professor in Computer Science, P. Rizwan Ahmed. MCA., M.Sc.,M.A., M.Phil.

Application Development in JAVA. Data Types, Variable, Comments & Operators. Part I: Core Java (J2SE) Getting Started

Contents Chapter 1 Introduction to Programming and the Java Language

Essential Series. Springer-Verlag London Ltd.

Course Status Networking GUI Wrap-up. CS Java. Introduction to Java. Andy Mroczkowski

"Charting the Course... Java Programming Language. Course Summary

5/23/2015. Core Java Syllabus. VikRam ShaRma

Core Java SYLLABUS COVERAGE SYLLABUS IN DETAILS

Murach s Beginning Java with Eclipse

Supporting Materials

Java Programming. Price $ (inc GST)

This page intentionally left blank

Core Java Syllabus. Overview

SD Module-1 Advanced JAVA

SD Module-1 Advanced JAVA. Assignment No. 4

Java Fundamentals p. 1 The Origins of Java p. 2 How Java Relates to C and C++ p. 3 How Java Relates to C# p. 4 Java's Contribution to the Internet p.

John Cowell. Essential Java Fast. How to write object oriented software for the Internet. with 64 figures. Jp Springer

Java for Programmers Course (equivalent to SL 275) 36 Contact Hours

CONTENTS. PART 1 Structured Programming 1. 1 Getting started 3. 2 Basic programming elements 17

Core JAVA Training Syllabus FEE: RS. 8000/-

SELF-STUDY. Glossary

VALLIAMMAI ENGINEERING COLLEGE

Object Oriented Programming with Java. Unit-1

Core Java Syllabus. Pre-requisite / Target Audience: C language skills (Good to Have)

CSE 143. Event-driven Programming and Graphical User Interfaces (GUIs) with Swing/AWT

Java & Graphical User Interface II. Wang Yang wyang AT njnet.edu.cn

SCHEME OF COURSE WORK

Software Development & Education Center. Java Platform, Standard Edition 7 (JSE 7)

Peers Techno log ies Pv t. L td. Core Java & Core Java &Adv Adv Java Java

JAVA. Duration: 2 Months

ощ 'ршорвшэш! цвн-эориэу ощ 'sajbpossv # PIPG DUJ 'ssjmoossv ^ PIPG pipa w н OX ЛЮН VAV

A Quick Tour p. 1 Getting Started p. 1 Variables p. 3 Comments in Code p. 6 Named Constants p. 6 Unicode Characters p. 8 Flow of Control p.

DHANALAKSHMI SRINIVASAN COLLEGE OF ENGINEERING AND TECHNOLOGY ACADEMIC YEAR (ODD SEM)

Objective Questions. BCA Part III Paper XIX (Java Programming) page 1 of 5

1 OBJECT-ORIENTED PROGRAMMING 1

MyProgram m i ng Lab. get with the programming. Through the power of practice and immediate personalized

Contents Introduction 1

CSE 331. Event-driven Programming and Graphical User Interfaces (GUIs) with Swing/AWT

All the Swing components start with J. The hierarchy diagram is shown below. JComponent is the base class.

Java SE 8 Programming

Core Java Contents. Duration: 25 Hours (1 Month)

PROGRAMMING DESIGN USING JAVA (ITT 303) Unit 7

Contents. iii Copyright 1998 Sun Microsystems, Inc. All Rights Reserved. Enterprise Services August 1998, Revision B

Java SE 8 Programming

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

Frameworks. CS151 Chris Pollett Oct. 26, 2005.

Core Java Syllabus DAY -1 :

Java SE 8 Programming

Core Java. Basics of Java. String Handling. OOPS Concepts. Exception Handling

DOWNLOAD PDF CORE JAVA APTITUDE QUESTIONS AND ANSWERS

[Course Overview] After completing this module you are ready to: Develop Desktop applications, Networking & Multi-threaded programs in java.

CHAPTER 1: A GENERAL INTRODUCTION TO PROGRAMMING 1

14.2 Java s New Nimbus Look-and-Feel 551 Sample GUI: The SwingSet3 Demo Application As an example of a GUI, consider Fig. 14.1, which shows the SwingS

PESIT Bangalore South Campus

CSE 331. Event- driven Programming and Graphical User Interfaces (GUIs) with Swing/AWT

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

Core Java - SCJP. Q2Technologies, Rajajinagar. Course content

15CS45 : OBJECT ORIENTED CONCEPTS

LTBP INDUSTRIAL TRAINING INSTITUTE

Certification In Java Language Course Course Content

Graphics. Lecture 18 COP 3252 Summer June 6, 2017

Java Application Development

Introduction to Programming Using Java (98-388)

Contents. Figures. Tables. Examples. Foreword. Preface. 1 Basics of Java Programming 1. xix. xxi. xxiii. xxvii. xxix

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

Govt. of Karnataka, Department of Technical Education Diploma in Information Science & Engineering. Fifth Semester

Name of subject: JAVA PROGRAMMING Subject code: Semester: V ASSIGNMENT 1

Casting -Allows a narrowing assignment by asking the Java compiler to "trust us"

Programming graphics

11/7/12. Discussion of Roulette Assignment. Objectives. Compiler s Names of Classes. GUI Review. Window Events

SRM INSTITUTE OF SCIENCE & TECHNOLOGY Faculty of Science and Humanities Department of Computer Science UNIT I - INTRODUCTION TO JAVA

Big Java Late Objects

Type of Classes Nested Classes Inner Classes Local and Anonymous Inner Classes

GUI Design. Overview of Part 1 of the Course. Overview of Java GUI Programming

UNIT-3 : MULTI THREADED PROGRAMMING, EVENT HANDLING. A Multithreaded program contains two or more parts that can run concurrently.

Chapter 6: Graphical User Interfaces

CS 180 Final Exam Review 12/(11, 12)/08

Java Training JAVA. Introduction of Java

Control Flow: Overview CSE3461. An Example of Sequential Control. Control Flow: Revisited. Control Flow Paradigms: Reacting to the User

JAVA. 1. Introduction to JAVA

INSTITUTE OF AERONAUTICAL ENGINEERING

Java Platform, Standard Edition (Java SE) From Yes-M Systems LLC Length: Approx 4 weeks/40 hours Audience: Students with experience in

Packages: Putting Classes Together

Introduction to the JAVA UI classes Advanced HCI IAT351

Page 1

Compaq Interview Questions And Answers

Complete Java Contents

Java Graphical User Interfaces AWT (Abstract Window Toolkit) & Swing

GUJARAT TECHNOLOGICAL UNIVERSITY

(2½ hours) Total Marks: 75

JAVA+ANDROID CURRICULUM 6 WEEKS. INTRODUCTION TO JAVA Understanding Requirement: Why Java Why Java is important to the Internet JAVA on LINUX Platform

5. In JAVA, is exception handling implicit or explicit or both. Explain with the help of example java programs. [16]

Merge Sort Quicksort 9 Abstract Windowing Toolkit & Swing Abstract Windowing Toolkit (AWT) vs. Swing AWT GUI Components Layout Managers Swing GUI

CS/B.TECH/CSE(OLD)/SEM-6/CS-605/2012 OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70

Java Programming Course Overview. Duration: 35 hours. Price: $900

Handout 14 Graphical User Interface (GUI) with Swing, Event Handling

Transcription:

Table of Contents Chapter 1 Getting Started with Java SE 7 1 Introduction of Java SE 7... 2 Exploring the Features of Java... 3 Exploring Features of Java SE 7... 4 Introducing Java Environment... 5 Explaining JDK... 5 Explaining Java Platform Components... 5 Defining JVM or Runtime Environment... 6 Defining Java API... 7 Types of Java Programs... 7 Defining Java Desktop Applications... 7 Defining Java Applets... 8 Getting and Installing Java... 8 A Simple Java Program... 13 Summary... 14 Chapter 2 Exploring Class Members in Java 15 Introducing Tokens in Java... 16 Identifier... 16 Keyword... 17 Separator... 17 Operator... 18 Literal... 18 Binary Literal... 18 Underscores in Numeric Literal... 19 Comment... 19 Understanding Datatypes... 20 Integer Types... 20 Character... 20 Floating Point Types... 21 iii

Java 7 in Simple Steps Boolean Type... 21 Introducing Instance Members in Java... 21 Constant... 21 Method... 22 Variable... 23 Understanding Operators... 24 Using the Arithmetic Operators... 24 Studying the Increment and Decrement Operators... 25 Using the Bitwise Operators... 26 The AND Operator... 27 The OR Operator... 27 The Exclusive OR Operator... 27 The Right Shift Operator... 27 The Left Shift Operator... 28 Using the Relational Operators... 28 Using the Boolean Operator... 28 Using the Boolean Logical Operator... 29 Using the?: Operator... 30 Working with Arrays... 31 Using One Dimensional Array... 31 Using Two Dimensional Array... 32 Initializing an Array... 33 Using the Varargs Feature... 34 Using the Non Reifiable Formal Parameter... 35 Summary... 36 Chapter 3 Controlling Program Flow 37 Implementing the Conditional Statements... 38 Using the if Statement... 38 Using the if else Statement... 39 Using the switch Statement... 40 Working with Strings in the switch Statement... 42 iv

Implementing the Iteration Statements... 44 Using the while Loop... 45 Using the do while Loop... 46 Using the for Loop... 47 Using the for each Loop... 48 Working with the Nested Loop... 49 Implementing the Jump Statements... 50 Table of Contents Using the break statement... 50 Using the continue Statement... 52 Using the return Statement... 53 Summary... 54 Chapter 4 Packages, and Access Specifiers 55 Overview of a Class... 56 Working with Objects... 57 Working with Methods... 59 Working with Constructors... 61 Using Default Constructor... 61 Using Parameterized Constructors... 62 Working with Inner Classes... 64 Exploring Packages... 66 Studying the Types of Packages... 66 Built In Packages... 66 User Defined Packages... 67 Importing Packages... 69 Using Access Specifiers... 70 Summary... 70 Chapter 5 Implementing Object Oriented Programming in Java 71 Understanding Encapsulation... 72 Understanding Abstraction... 73 Understanding Inheritance... 74 Understanding the final Keyword... 77 v

Java 7 in Simple Steps Preventing Inheritance... 78 Declaring Constant Variables... 78 Preventing Method Overriding... 78 Implementing Interfaces... 79 Implementing Abstract Classes and Methods... 81 Difference between Abstract Classes and Interfaces... 83 Implementing Polymorphism... 83 Understanding the Static Polymorphism... 84 Understanding the Dynamic Polymorphism... 85 Summary... 86 Chapter 6 Implementing Exception Handling 87 Overview of Exceptions... 88 Exception Handling Techniques... 89 Using the try and catch Blocks... 90 Using the try with resources Statement... 91 Using Multiple catch Blocks... 92 Using Nested try Blocks... 93 Using the throw Clause... 95 Using the throws Clause... 97 Rethrowing Catched Exception with Improved Type Checking... 98 Built in Exceptions... 100 User Defined Exceptions... 101 Summary... 102 Chapter 7 Working with Threads 103 Understanding Threads... 104 Describing the Thread Life Cycle... 105 Creating and Running a Thread... 106 Implementing the Runnable Interface... 106 Extending the Thread Class... 107 Terminating a Thread... 109 vi

Synchronizing Threads... 109 Synchronized Method... 111 Synchronized Statement... 111 Implementing Interthread Communication... 113 Understanding DeadLocks in Threads... 115 Understanding Thread Priorities... 118 nderstanding Multithreaded Custom Class Loaders... 119 Table of Contents Summary... 120 Chapter 8 Working with Collections Framework 121 Overview of Collections Framework... 122 Exploring the Collection Interfaces... 122 The Collection Interface... 123 The List Interface... 124 The Set Interface... 125 The SortedSet Interface... 126 The NavigableSet Interface... 126 The Queue Interface... 127 The Deque Interface... 127 Exploring the Collection Framework Classes... 129 The ArrayList Class... 129 The HashSet Class... 131 The TreeSet Class... 132 The PriorityQueue Class... 135 The ArrayDeque Class... 137 Accessing a Collection Using an Iterator... 139 Working with Maps... 141 Using the Map Interface... 141 Using the NavigableMap Interface... 141 Using Classes Implementing the Map and NavigableMap Interfaces... 142 The HashMap class... 142 The TreeMap class... 144 Summary... 146 vii

Java 7 in Simple Steps Chapter 9 Implementing Input/Output Operations 147 Streams... 148 Byte Streams... 149 Character Streams... 150 Introducing the java.nio.file Package... 151 Introducing the java.nio.file.attribute Package... 152 Reading Console Input... 153 Reading Lines from a Text File... 154 Writing Text to a File... 155 Reading Bytes from a File... 156 Summary... 158 Chapter 10 Working with Interface Components 159 Understanding AWT... 160 Creating Desktop Applications Using AWT... 161 Creating a Frame Window... 161 Hiding and Showing a Window... 163 Setting the Window s Title... 164 Closing a Frame Window... 165 Adding Buttons... 168 Adding Labels and TextFields... 170 Adding Checkboxes and Radiobuttons... 173 Using the Choice Class... 175 Adding a Scrollbar... 177 Working with TextAreas... 179 Working with Panel Container... 181 Understanding Swing... 182 Creating the Desktop Applications Using Swing... 183 Implementing the JFrame Class... 183 Adding the JButton... 185 Adding JLabel and JTextField... 187 Adding JTextArea... 190 Adding JTable... 191 viii

Working with the JTabbedPane... 193 Using the JLayer Class... 196 Working with JColorChooser Class... 198 Implementing the Nimbus Look and Feel... 200 Combining Heavyweight and Lightweight Components... 202 Desigining Shaped and Translucent Windows... 204 Creating the Translucent Windows... 205 Developing the Different Shaped Windows... 206 Implementing Layout Managers... 208 FlowLayout... 208 BorderLayout... 210 GridLayout... 212 GridBagLayout... 213 Summary... 216 Table of Contents Chapter 11 Implementing and Handling Events 217 Overview of Events... 218 Components of Event... 218 Event Classes... 219 The ActionEvent Class... 219 The AdjustmentEvent Class... 220 The ComponentEvent Class... 220 The InputEvent Class... 221 The KeyEvent Class... 221 The MouseEvent Class... 221 The ItemEvent Class... 222 The WindowEvent Class... 222 Listeners for Events... 222 The ActionListener Interface... 223 The ComponentListener Interface... 224 The KeyListener Interface... 225 The MouseListener Interface... 225 The AdjustmentListener Interface... 226 Exploring the Methods of Event Listeners... 226 ix

Java 7 in Simple Steps Using the ActionListener Interface... 226 Using the KeyListener Interface... 228 Using the MouseListener Interface... 229 Using Adapter Classes... 231 Summary... 232 Chapter 12 Exploring Applets and Advanced GUI Features 233 Understanding Applets... 234 Life Cycle of an Applet... 234 Using the <APPLET> HTML Tag... 235 Drawing Graphics in Applets... 236 Adding Controls to Applets... 238 Working with Draggable Applets... 241 Handling Initialization Status of Applet... 244 Embedding JNLP in Applet Tag... 247 Advanced GUI Features... 248 Working with the System Tray... 249 Working with the Splash Screen... 251 Working with Dialog Modality... 254 Working with the GIF Writer... 255 Summary... 256 x