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.

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

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

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

Supporting Materials

SCHEME OF COURSE WORK

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

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

This page intentionally left blank

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

SRM ARTS AND SCIENCE COLLEGE SRM NAGAR, KATTANKULATHUR

SELF-STUDY. Glossary

Contents. 1 Introduction to Computers, the Internet and the Web 1

Contents Chapter 1 Introduction to Programming and the Java Language

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

Mobile MOUSe JAVA2 FOR PROGRAMMERS ONLINE COURSE OUTLINE

VALLIAMMAI ENGINEERING COLLEGE

Core Java SYLLABUS COVERAGE SYLLABUS IN DETAILS

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

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

Contents Introduction 1

1 OBJECT-ORIENTED PROGRAMMING 1

Murach s Beginning Java with Eclipse

Object Oriented Programming with Java. Unit-1

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

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.

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

Essential Series. Springer-Verlag London Ltd.

GUJARAT TECHNOLOGICAL UNIVERSITY

CHAPTER 1: A GENERAL INTRODUCTION TO PROGRAMMING 1

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

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

Contents. 1 Introduction to Computers, the Internet and the World Wide Web 1. 2 Introduction to C Programming 26

Introduction. Assessment Test. Part I The Programmer s Exam 1

Java Programming. Price $ (inc GST)

Java Programming Lecture 6

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

ABOUT CORE JAVA COURSE SCOPE:

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

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

1/16/2013. Program Structure. Language Basics. Selection/Iteration Statements. Useful Java Classes. Text/File Input and Output.

Programming graphics

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

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

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

CORE JAVA TRAINING COURSE CONTENT

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

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

OracleAS 10g R3: Java Programming

Introduction to Programming Using Java (98-388)

Chapter 12 Advanced GUIs and Graphics

INSTITUTE OF AERONAUTICAL ENGINEERING (Autonomous) Dundigal, Hyderabad

LTBP INDUSTRIAL TRAINING INSTITUTE

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

Diploma in Android Programming (DAP)

Global edition. Java How to Program. Late Objects Version. TENTH edition. Paul Deitel Harvey Deitel

2110: GUIS: Graphical User Interfaces

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

Core JAVA Training Syllabus FEE: RS. 8000/-

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

Graphics. Lecture 18 COP 3252 Summer June 6, 2017

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

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

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

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

Java Programming Training for Experienced Programmers (5 Days)

COURSE DETAILS: CORE AND ADVANCE JAVA Core Java

C ONTENTS PART I FUNDAMENTALS OF PROGRAMMING 1. and Java 3. Chapter 1 Introduction to Computers, Programs,

Java Training JAVA. Introduction of Java

Oracle 10g: Java Programming

Java Application Development

INSTITUTE OF AERONAUTICAL ENGINEERING

PESIT Bangalore South Campus

The Sun s Java Certification and its Possible Role in the Joint Teaching Material

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

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.

This page intentionally left blank

JAVA MICROSERVICES. Java Language Environment. Java Set Up. Java Fundamentals. Packages. Operations

Core Java Syllabus. Overview

E Oracle 10g Java Bootcamp I v1

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

15CS45 : OBJECT ORIENTED CONCEPTS

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

(2½ hours) Total Marks: 75

Java Programming Fundamentals

Page 1

CS506 Web Programming and Development Solved Subjective Questions With Reference For Final Term Lecture No 1

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

Advanced Java 2014

Credits Details of Sessional Marks ESM 5 (3-1- 2)

Core Java - SCJP. Q2Technologies, Rajajinagar. Course content

Big Java Late Objects

COWLEY COLLEGE & Area Vocational Technical School

Contents. Before You Begin. Appendices M Q are PDF documents posted online at the book s Companion Website (

PROGRAMMING DESIGN USING JAVA (ITT 303) Unit 7

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

Packages: Putting Classes Together

Introduction to JavaScript p. 1 JavaScript Myths p. 2 Versions of JavaScript p. 2 Client-Side JavaScript p. 3 JavaScript in Other Contexts p.

This exam is closed textbook(s) and closed notes. Use of any electronic device (e.g., for computing and/or communicating) is NOT permitted.

Part 3: Graphical User Interface (GUI) & Java Applets

Transcription:

635 635 JAVA PROGRAMMING A. Zakiuddin Ahmed M.Sc.,M.Phil M.S.(Edn), PGDCSM, Professor in Computer Science, Mazharul Uloom College, Ambur - Vellore Dist, Tamil Nadu. 802 P. Rizwan Ahmed MCA., M.Sc.,M.A., M.Phil., Assistant Professorand Head, Department of Information System Management, Mazharul Uloom College, Ambur - 802 Vellore Dist. Tamil Nadu. APH PUBLISHING CORPORATION 4435-36/7, Ansari Road, Darya Ganj NewDelhi-110002

CONTENTS Acknowledgements Preface v vii Chapter 1 Fundamentals ofjava Programming 1 1.1 Features of Java, 1.2 Introduction to Java, 1.2.1 What is Java, 1.2.2 Types of Java Programs, 1.3 Dif ference between Application and Applets, 1.4 Creat ing and Executing Java Program, 1.5 Java Tokens, 1.5.1 Keywords, 1.5.2 Identifiers, 1.5.3 Literals, 1.5.3.1 Integer Literals, 1.5.3.2 Floating-point Literals, 1.5.3.3 Character Literals, 1.5.3.4 Boolean Literals, 1.5.3.5 String Literals, 1,5.4 Operators, 1.5.5 Separators, 1.6 Comments in a Java Program, 1.7Data Types, 1.8 Vari ables, 1.9 Arrays, 1.9.1 One-dimensionalArrays, 1.9.2 Two-dimensional Arrays Chapter 2 Operators and Control Statements 22 2.1 Operators, 2.1.1 Arithmetic Operators, 2.1.2 Rela tional Operators, 2.1.3 Logical Operators, 2.1.4 As signment Operators, 2.1,5 Increment and Decrement Operators, 2.1.6 Bitwise Operators, 2.1.7 Conditional Operators, 2.1.8 Special Operators, 2.2 Control State ments, 2.2.1 Decision-Making Statements, 2.2.1.1 Simple if Statement, 2.2.1.2 if... else Statement, 2.2.1.3 nested if Statement, 2.2.1.4 switch Statement, 2.3 Loop ing Statement, 2.3.1 while Loop, 2.3.2 do.,.while Loop, 2.3.3 for Loop, 2.4Jump Statement, 2.4.1 Break State ment, 2.4.2 Continue Statement

' xii Chapter 3 Input and Output Statements 50 3.1 Input Statements, 3.1.1 Scanner Class, 3.2 System Class, 3.2.1 Output Statement Chapter 4 Classes and Objects 4.1 Class, 4.1.1 Defining Methods, 4.1.2 Creating Objects, 4.1.3 Accessing Class Members, 4.2 Con structor- 4.2.1 Default Constructor, 4.2.2 Parameter ized Constructor, 4.3 Method, Overloading 4.4 Access Control, 4.5 Static and Fixed Methods, 4.6 String Class, 4.7 StringBuffer Class. 57 Chapter 5 Inheritance 85 5.1 Inheritance, 5.1.1 Deriving a Subclass, 5.2 Over riding Methods, 5.3 Using super Keyword, 5.4 Ab stract Class. Chapter 6 Wrapper Classes, Autoboxing and Auto Unboxing 94 6.1 Type -Wrapper Classes for Primitive Types, 6.2 Autoboxing and Auto-Unboxing, 6.3 Recursion. Chapter 7 GUIComponents-1 98 7.1 Working with Windows using AWT Controls, 7.2 Label, 7.3 Button, 7.4 CheckBox, 7.5 Choice. Chapter8 Abstract Windowing Toolkit-II 110 8.1 Text Components, 8.1.1 TextFields, 8.1.2 TextAreas, 8.2 Lists, 8.3 Scrollbars. Chapter9 Swing Components-1 121 9.1 GUI Components, 9.2 Common GUI Event Types and Listener Interfaces, 9.3 JOptionPane, 9.4 JLabel, 9.5 JTextComponents, 9.5.1 JTextField, 9.5.2 JTextArea,9.6JButton. Chapter 10 SwingComponents-II 135 10.1 JCheckBox, 10.2 JComboBox, 10.3 JSlider, 10.4 JList, 10.5 JFrame, 10.6 JPanel. Chapter 11 EventHandling 148 11.1 Mouse Event Handling, 11.2 Adapter Classes, 11.3 Key Event- Handling.

xiii Chapter 12 LayoutManagers 156 12.1 Layout Managers, 12.1.1 FlowLayout, 12.1.2 BorderLayout, 12.1.3 GridLayout Chapter 13 Graphics and Java2D 162 13.1 Graphics and Java2D, 13.1.1 Graphics Contexts and Graphic Objects, 13.2 Color Control, 13.3 Font Control, 13.4Graphics Class, 13.4.1 Drawing Lines, Rectangles, Ovals, 13.4.1.1 Drawing Lines, 13.4.1.2 Drawing Rectangles, 13.4.1.3 Drawing Ovals, 13.5 Using Menus with JFrames Chapter 14 Packages and Interfaces 175 14.1 Packages, 14.1.1 Creating Packages, 14.1.2 Hier archy of Packages, 14.2 Classpath, 14.3 Importing Packages, 14.4 Creating our own Packages, 14.5 In terface, 14.5.1 Defining an Interfaces, 14.5.2 Extend ing an Interface, 14.5.3 Implementing Interfaces. Chapter 15 Exception Handling 184 15.1 Exception Handling, 15.1.1 Exception Handling Mechanism, 15.1.2 Classification of Exception, 15.1.3 Built in Exception, 15.1.4 Using try and catch block, 15.3.5 Catching an exception, 15.1.6 Multiple catch Clauses, 15.1.7 Throw Statement, 15.1.8 Throws Clause, 15.1.9 Finally block. Chapter 16 Multithreading 192 16.1 Thread, 16.2 Life Cycle of athread, 16.3 CreatingaThread, 16.3.1 Extendingthe Class Thread, 16.3.2 Implementing Runnable Interface, 16.4 Synchroniza tion, 16.5 Inter-thread communication, 16.6 Deadlock. Chapter 17 I/O Stream 204 17.1 I/O Stream, 17.1.1 ByteStream classes, 17.1.2 Character Stream classes, 17.2 File Stream. Chapter 18 Applets 217 18.1 Applet, 18.1.1 Creating and Executing an Applet, 18.1.2 Understanding the Program, 18.2 HTML Tags, 18.3 Life Cycle of an Applet, 18.4 Applet Tags in HTML.

Chapter 19 Introduction to API Packages & JDBC Connectivity 225 19.1 Introduction to API Packages, 19.1.1 java.lang Package, 19.1.2java.util Package, 19.2 JDBC Connec tivity. Chapter 20 Networking 232 20.1 Network Basics, 20.2 Proxy Servers, 20.3 Uni form Resource Locator (URL), 20.4 Socket Program ming, 20.4.1 Establishing a simple serverwith stream socket, 20.4.2 Establishing a simple client with stream socket, 20.5 Datagram, 20.5.1 Establishing a simple server using datagram socket, 20.5.2 Establishing a simple client using datagram socket, 20.6 InetAddress. APPENDIX 245