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

Similar documents
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...

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

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.

Murach s Beginning Java with Eclipse

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

Essential Series. Springer-Verlag London Ltd.

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

Supporting Materials

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

Java Programming. Price $ (inc GST)

Contents Chapter 1 Introduction to Programming and the Java Language

VALLIAMMAI ENGINEERING COLLEGE

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

Contents Introduction 1

Object Oriented Programming with Java. Unit-1

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

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.

Core Java Syllabus. Overview

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

SELF-STUDY. Glossary

This page intentionally left blank

Core Java SYLLABUS COVERAGE SYLLABUS IN DETAILS

SCHEME OF COURSE WORK

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

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

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

Mobile MOUSe JAVA2 FOR PROGRAMMERS ONLINE COURSE OUTLINE

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

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

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

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

1 OBJECT-ORIENTED PROGRAMMING 1

Core JAVA Training Syllabus FEE: RS. 8000/-

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

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

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

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

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.

Java SE 8 Programming

Introduction to Programming Using Java (98-388)

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

PESIT Bangalore South Campus

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

JAVA. Duration: 2 Months

Java SE 8 Programming

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

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

Java Training JAVA. Introduction of Java

Java SE 8 Programming

DOWNLOAD PDF CORE JAVA APTITUDE QUESTIONS AND ANSWERS

CHAPTER 1: A GENERAL INTRODUCTION TO PROGRAMMING 1

15CS45 : OBJECT ORIENTED CONCEPTS

Java Application Development

B2.52-R3: INTRODUCTION TO OBJECT ORIENTATED PROGRAMMING THROUGH JAVA

Virtualians.ning.pk. 2 - Java program code is compiled into form called 1. Machine code 2. native Code 3. Byte Code (From Lectuer # 2) 4.

INSTITUTE OF AERONAUTICAL ENGINEERING

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

Compaq Interview Questions And Answers

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

GUJARAT TECHNOLOGICAL UNIVERSITY

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

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

Core Java - SCJP. Q2Technologies, Rajajinagar. Course content

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

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

Packages: Putting Classes Together

Core Java Syllabus DAY -1 :

LTBP INDUSTRIAL TRAINING INSTITUTE

Certification In Java Language Course Course Content

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

Page 1

CS/B.TECH/CSE(New)/SEM-5/CS-504D/ OBJECT ORIENTED PROGRAMMING. Time Allotted : 3 Hours Full Marks : 70 GROUP A. (Multiple Choice Type Question)

SD Module-1 Advanced JAVA

Big Java Late Objects

SD Module-1 Advanced JAVA. Assignment No. 4

Introduction to Java Programming

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

Course Description. Learn To: : Intro to JAVA SE7 and Programming using JAVA SE7. Course Outline ::

SRM UNIVERSITY FACULTY OF ENGINEERING AND TECHNOLOGY

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

Introduction to Java Programming

Java Swing. based on slides by: Walter Milner. Java Swing Walter Milner 2005: Slide 1

Graphical User Interface (GUI) components in Java Applets. With Abstract Window Toolkit (AWT) we can build an applet that has the basic GUI

PROGRAMMING DESIGN USING JAVA (ITT 303) Unit 7

(2½ hours) Total Marks: 75

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

Come & Join Us at VUSTUDENTS.net

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

Java Programming Lecture 6

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

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

Frameworks. CS151 Chris Pollett Oct. 26, 2005.

OBJECT ORIENTED PROGRAMMING TYm. Allotted : 3 Hours Full Marks: 70

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

Introduction to the JAVA UI classes Advanced HCI IAT351

Java Programming Fundamentals

SYLLABUS JAVA COURSE DETAILS. DURATION: 60 Hours. With Live Hands-on Sessions J P I N F O T E C H

Course Code Course Name Theory Practical Tutorial Theory TW/Practical Tutorial Total. Internal assessment. End Sem. Exam. Avg.

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

Transcription:

CONTENTS Chapter 1 Getting Started with Java SE 6 1 Introduction of Java SE 6... 3 Desktop Improvements... 3 Core Improvements... 4 Getting and Installing Java... 5 A Simple Java Program... 10 Compiling and Running the Program... 11 Summary... 12 Chapter 2 Exploring Variables, Data Types, Operators and Arrays 13 Declaring a Variable... 14 Understanding Data Types... 15 Integer Types... 16 Character... 16 Floating point types... 16 Boolean Type... 17 Understanding Operators... 17 Using Arithmetic Operators... 18 Increment and Decrement Operators... 19 Using Bitwise Operators... 20 Using Relational Operators... 22 Using the Boolean Operator... 23 Using the Boolean Logical Operator... 23 Using the?: Operator... 25 Working with Arrays... 26 Using One Dimensional Array... 26 Using Two Dimensional Array... 28 Using the Varargs Feature... 29 Summary... 30 Chapter 3 Controlling Program Flow 31 Implementing Conditional Statements... 32 Using if statement... 32 Using if-else statement... 33 Using switch statement... 34 Implementing Iteration Statements... 36 Using while Loop... 36 v

Java 6 in Simple Steps Using do-while Loop... 37 Using for Loop... 39 Using for-each Loop... 40 Working with Nested Loop... 41 Implementing Jump Statements... 42 Using break statement... 42 Using continue statement... 44 Using return Statement... 45 Summary... 46 vi Chapter 4 Classes, Methods, Packages, and Access Specifiers 47 Overview of a class... 48 Working with Objects... 50 Working with Methods... 51 Working with Constructors... 53 Using Default Constructor... 54 Using Parameterized Constructors... 55 Working with Inner Classes... 58 Exploring Packages... 59 Built-in Packages... 60 User-defined packages... 61 Using Access Specifiers... 64 Summary... 64 Chapter 5 Implementing Objects Oriented Programming In Java 65 Understanding Encapsulation... 66 Understanding Abstraction... 67 Understanding Inheritance... 69 Using Method Overriding... 70 Understanding the final Keyword... 72 Preventing Inheritance... 72 Declaring Constant Variables... 73 Preventing Method Overriding... 73 Implementing Interfaces... 74 Implementing Abstract Classes and Methods... 77 Difference between Abstract Classes and Interfaces... 78 Defrence Between Polymorphism... 79 Understanding Static Polymorphism... 79 Understanding Dynamic Polymorphism... 81 Summary... 82

Contents Chapter 6 Implementing Exception Handling 83 Overview of Exceptions... 84 Exception Handling Techniques... 85 Using the try and catch Blocks... 86 Using Multiple catch Blocks... 87 Using Nested try... 88 Using the throw Clause... 90 Using the throws Clause... 91 Built-in Exceptions... 93 User-defined Exceptions... 94 Summary... 96 Chapter 7 Working with Threads 97 Understanding Threads... 98 Describing the Thread Life cycle... 99 Creating and Running a Thread... 100 Implementing the Runnable Interface... 100 Extending the Thread Class... 101 Terminating a Thread... 103 Synchronizing Threads... 103 Thread Synchronization Mechanisms... 105 Implementing Inter-Thread Communication... 107 Understanding DeadLocks in Threads... 110 Understanding Thread Priorities... 112 Summary... 114 Chapter 8 Working with Collection Framework 115 Overview of Collections Framework... 116 Exploring the Collection Interfaces... 116 The Collection Interface... 117 The List Interface... 118 The Set Interface... 120 The SortedSet Interface... 121 The NavigableSet Interface... 122 The Queue Interface... 123 The Deque Interface... 124 Exploring the Collection Classes... 125 The ArrayList Class... 126 The HashSet Class... 128 The TreeSet Class... 129 vii

Java 6 in Simple Steps viii The PriorityQueue Class... 132 The ArrayDeque Class... 135 Accessing a Collection via an Iterator... 138 Working with Maps... 139 Using the Map Interface... 139 Using the NavigableMap Interface... 140 Using Map Classes... 141 Summary... 145 Chapter 9 Implementing Input/Output Operations 147 Streams... 148 Byte Streams... 149 Character Streams... 150 Reading Console Input... 151 Reading Lines from a Text File... 153 Writing Text to a File... 154 Reading Bytes from a File... 155 Summary... 156 Chapter 10 Working with Interface Components 157 Understanding AWT... 158 Exploring the Component class... 158 Creating a Desktop Application using AWT... 160 Creating a Frame Window... 160 Hiding and Showing a Window... 162 Setting the Window s Title... 163 Closing a Frame Window... 164 Adding Buttons... 167 Adding Labels and TextFields... 169 Adding Checkboxes and Radiobuttons... 172 Using the Choice class... 175 Adding a Scrollbar... 177 Working with TextAreas... 179 Working with Panel Container... 181 Understanding Swing... 183 Creating a Desktop Application using Swing... 183 Implementing the JFrame class... 184 Adding the JButton... 186 Adding JLabel and JTextField... 188 Adding JTextArea... 191 Adding JTable... 193

Working with the JTabbedPane... 195 Contents Implementing Layout Managers... 198 The FlowLayout Manager... 198 The BorderLayout Manager... 200 The GridLayout Manager... 202 The GridBagLayout Manager... 204 Summary... 209 Chapter 11 Implementing and Handling Events 211 Overview of Events... 212 Components of Event... 212 Event Classes... 213 Listeners for Events... 217 ActionListener... 218 ComponentListener... 218 KeyListener... 219 MouseListener... 220 AdjustmentListener... 220 Exploring the Methods of Event Listeners... 220 Using ActionListener... 221 Using KeyListener... 222 Using MouseListener... 224 Using Adapter Classes... 226 Summary... 228 Chapter 12 Exploring Applets and Advanced GUI Features 229 Understanding Applets... 230 Life Cycle of an Applet... 230 Using the <APPLET> HTML Tag... 231 Drawing Graphics in Applets... 232 Adding Controls to Applets... 235 Advanced GUI Features... 237 Working with the System Tray... 238 Working with the Splash Screen... 240 Working with Dialog Modality... 243 Working with the GIF Writer... 244 Summary... 245 ix