• No results found

Java Handout

N/A
N/A
Protected

Academic year: 2021

Share "Java Handout"

Copied!
9
0
0

Loading.... (view fulltext now)

Full text

(1)

SHRI VISHNU ENGINEERING COLLEGE FOR WOMEN:: BHIMAVARAM DEPARTMENT OF INFORMATION TECHNOLOGY

OBJECT ORIENTED PROGRAMMING HAND-OUT II YEAR B.TECH I.T – II SEM

Unit – I : Object Oriented Thinking Objective: Objective of this unit is that

• To get a sound knowledge of object oriented programming principles • To get a need of OOP Principles for designing large programs.

• To design and thinking a small software systems in terms of collection of objects. Concepts:

 This unit provides a lightweight introduction to Object-Oriented programming principles such as classes, objects, methods, Inheritance, polymorphism.

 It also deals with Data Abstraction , Data Encapsulation.  It gives a brief introduction to abstraction mechanisms. Text Books :

• Java : Complete Reference 5th Edition Herbert Scheild

• Understanding OOP with Java Updated Edition Pearson Education T.Bud • An Introduction to OOP 2nd Edition T.Bud

• Internet and Java Programming, R.Krishna Murthy & S.Prabhu • OOP through Java P.Radha Krishna , University Press

Website References : 1. http://www.codeproject.com/KB/architecture/OOP_Concepts_and_manymore.aspx 2. http://java.sun.com/docs/books/tutorial/java/concepts/ 3. http://www.iam.ubc.ca/guides/javatut99/java/concepts/index.html 4. http://www.iut-info.univ-lille1.fr/docs/tutorial/java/concepts/index.html 5. http://docs.rinet.ru/KofeynyyPrimer/ch4.htm

(2)

Unit – II : Java Basics

Objective: The main objective of this unit is

• To get an idea in the evaluation of Java Programming language.

• To introduce nonprogrammers to basic programming concepts and constructs • To get thorough in the basics of Java language.

• To get the basic idea on the classes and objects in Java. Concepts:

 History of Java.  Data types  Java Statements.

 Variables & scope and life time of variables.  Operators

 Expressions

 Control Statements  Arrays

 Type Conversion and Castings  Classes and Objects

 Methods and Constructors

 Overloading Methods and Constructors  Parameter Passing Mechanisms

 Recursion  Access Control  this keyword  Garbage Collection Text Books :

 Internet and Java Programming, R.Krishna Murthy & S.Prabhu  Java Examples in NUTSHELL David Flanagan Oreilly

 Programming with Java E. Balagurusamy  Java:The Complete Reference Herbert Schield Website References: 1. http://www.jeremyrussell.co.uk/CourseSamples/JavaProgLesson02.pdf 2. http://java.sun.com/docs/books/tutorial/java/TOC.html 3. http://www.sitepoint.com/article/java-language-basics/ 4. http://www.javabeginner.com/basic-language-elements.htm 5. http://www.freejavaguide.com/

(3)

Unit – III : Inheritance Objective:

• Introduces one of the most fundamental capabilities of object oriented programming language – Inheritance.

• Shows us to develop and implement reusability using Inheritance. • To get an idea of how to create a new class using another class.

• To get knowledge in compile-time and runtime polymorphism using Inheritance. • To know the behavior of super class and sub class.

Concepts:

 Inheritance

o Base class and Derived class o Inheritance Types

o Implementation of Inheritance in Java o Member access rules.

o Using super keyword

o Constructor Behavior in sub class. o Using final with Inheritance o Method Overriding

o Runtime polymorphism o Abstract classes.

Text Books :

 Java:The Complete Reference Herbert Schield

 Internet and Java Programming, R.Krishna Murthy & S.Prabhu  Introduction to Java Programming 6th edition Y.Daniel Liang  Programming with Java E. Balagurusamy

 Java Examples in NUTSHELL David Flanagan Oreilly Website References : 1. http://www.javaworld.com/javaworld/jw-07-2001/jw-0706-java101.html 2. http://home.cogeco.ca/~ve3ll/jatutor5.htm 3. http://www.cs.utexas.edu/~lavender/courses/tutorial/java-06.pdf 4. http://venkatsadasivam.wordpress.com/2008/08/02/why-multiple-inheritance-is-not-allowed-in-java/ 5. http://www.erik-rasmussen.com/blog/2006/10/23/multiple-inheritance-in-java/

(4)

Unit – IV: Packages and Interfaces Objective:

• This unit examines two of java’s most innovative features packages and interfaces. • To get expertise in grouping different classes into a package.

• To familiarize multiple inheritance using interfaces.

• To get the procedure of specifying CLASSPATH variable for packages. Concepts:

 Packages

o Defining, creating and accessing a package. o CLASSPATH variable setting.

o Importing user-defined packages. o Exploring java.io, java.util packages.  Interfaces

o Differences between classes and interfaces. o Defining and implementing interfaces. o Interfaces in multiple inheritance. o Extending interfaces.

Text Books:

 Java:The Complete Reference Herbert Schield

 Internet and Java Programming, R.Krishna Murthy & S.Prabhu  Introduction to Java Programming 6th edition Y.Daniel Liang  Programming with Java E. Balagurusamy

 Java Examples in NUTSHELL David Flanagan Oreilly Website References: 1. http://java.sun.com/docs/books/tutorial/java/package/packages.html 2. http://jarticles.com/package/package_eng.html 3. http://pages.cs.wisc.edu/~hasti/cs368/JavaTutorial/NOTES/Packages.html 4. http://www.aquaphoenix.com/ref/jdk1.0.2_api/packages.html 5. http://www.cs.fit.edu/~ryan/java/language/packages.html 6. http://www.fluffycat.com/Java/Interfaces/ 7. http://people.cis.ksu.edu/~schmidt/CIS200/ch9V12.html

(5)

8. http://leepoint.net/notes-java/oop/interfaces/interfaces.html

9. http://java.sun.com/docs/books/tutorial/java/concepts/interface.html 10.http://mindprod.com/jgloss/interfacevsabstract.html

Unit – V : Exception Handling and Multithreading Objective:

• To manage and preventing the exceptions occurred in runtime.

• To implement runtime error management into the object oriented world.

• To enable us to write very efficient programs that make maximum use of CPU using multithread Programme.

• To design the programs in multithreaded fashion. Concepts:

 Exception Handling

o Elements of Exception handling. o Benefits of Exception handling.

o Usage of try,catch,throw,throws and finally. o Built-in Exceptions.

o Creating user-defined exception classes.  Multithreading

o Difference between multithreading and multi-tasking. o Thread Lifecycle.

o Creating threads using thread class and Runnable interface. o Synchronizing threads.

o Daemon threads.

o Thread Groups and Thread Priorities. Text Books:

 Java: The Complete Reference Herbert Schildt

 Internet and Java Programming, R.Krishna Murthy & S.Prabhu  Introduction to Java Programming 6th edition Y.Daniel Liang  Programming with Java E. Balagurusamy

 Java Examples in NUTSHELL David Flanagan Oreilly  OOP through Java P.Radha Krishna , University Press Website References: 1. http://java.sun.com/docs/books/tutorial/essential/exceptions/ 2. http://www.osix.net/modules/article/?id=754 3. http://mindprod.com/jgloss/exception.html 4. http://www.developer.com/java/article.php/1455891 5. http://tutorials.jenkov.com/java-exception-handling/index.html 6. http://www.roseindia.net/java/beginners/ExceptionHandle.shtml 7. http://www.slideshare.net/parag/exception-handling-in-java

(6)

8. http://docs.rinet.ru/JWP/ch16.htm

9. http://www.ibm.com/developerworks/library/j-thread.html

10. http://www.cs.umd.edu/class/spring2006/cmsc132/Slides/lec34.pdf

11.http://www.geekpedia.com/tutorial289_Multithreading-Fundamentals-in-Java.html

12. http://www.cs.tau.ac.il/~yahave/multithread.htm Unit – VI : Event Handling

Objective:

• To get expertise in designing windowing applications in java.

• To know the procedure of handling events occurred in windowing applications. • To get a creativity of designing user interface using AWT and SWING components. Concepts:

 Event Handling

o Events, Event soruces, Event classes, Event Listeners. o Delegation event model.

o Handling mouse and keyboard events. o Adapter Classes.

o Inner Classes.  AWT Components

o Components and containers. o Frame,Canvas,Panel.

o Labels,Text Components, Buttons, Checkbox,CheckBoxGroups. o Choices, Lists. o ScrollPane, Dialogs. o Menus, Graphics.  Layout Managers o Border Layout. o Grid Layout. o Flow Layout. o Card Layout. o GridBag Layout. Text Books:

 Java:The Complete Reference Herbert Schield

 Internet and Java Programming, R.Krishna Murthy & S.Prabhu  Introduction to Java Programming 6th edition Y.Daniel Liang  OOP through Java P.Radha Krishna , University Press  Java How to program Deitel and Deitel, 6th edition

(7)

 Core Java 2 Advanced Features Cay.S.Horstmann & Gary Cornell 7th edition LPE Website References: 1. http://www.javaworld.com/javaworld/jw-08-1996/jw-08-event.html 2. http://www.cs.xu.edu/csci260/06s/applet2/ 3. http://www.javacoffeebreak.com/java107/java107.html 4. http://www.sis.pitt.edu/~peterb/2470-031/L4j1.pdf 5. http://www.roseindia.net/java/example/java/awt/AwtEvent.shtml 6. http://www.krhs.net/computerscience/java/componts.htm 7. http://www.javacoffeebreak.com/java108/java108.html 8. http://journals.ecs.soton.ac.uk/java/tutorial/ui/overview/components.html 9. http://www.roseindia.net/java/example/java/awt/awt-components.shtml 10. http://java.sun.com/j2se/1.4.2/docs/api/java/awt/Component.html 11. http://cuiwww.unige.ch/java/diagrams-1.1/pdf/02R_java.awt-components.pdf 12. http://java.sun.com/docs/books/tutorial/uiswing/layout/using.html 13. http://www.javaprepare.com/notes/lay_mgr.html 14. http://www.acm.org/crossroads/xrds5-1/ovp51.html 15. http://www.iut-info.univ-lille1.fr/docs/tutorial/uiswing/layout/using.html 16. http://pagelayout.sourceforge.net/ 17. http://www.softbear.com/people/larry/javalm.htm

(8)

Unit – VII : Applets and Swings Objective:

• To get the knowledge writing web based applications using java’s applets. • Designing user interface using variety of swing components.

Concepts:  Applets

o Concept of Applet.

o Difference between Applet and Standalone application. o Lifecycle of an Applet.

o Types of Applet.

o Creating Applets and embedding applets in to the web pages. o Passing parameters to Applets.

 Swing Components

o Limitations of AWT.

o Swing components and containers. o JFrame, JApplet, JComponent. o JLabel, JTextField, JButton. o JRadioButton, JComboBox. o JScrollPanes, JTabbedPanes. o Trees.

o Tables. Text Books :

 Java:The Complete Reference Herbert Schield

 Internet and Java Programming, R.Krishna Murthy & S.Prabhu  Introduction to Java Programming 6th edition Y.Daniel Liang  Java How to program Deitel and Deitel, 6th edition

 Java Somasundaram Jaico

 Core Java 2 Advanced Features Cay.S.Horstmann & Gary Cornell 7th edition LPE  Java Examples in NUTSHELL David Flanagan Oreilly

(9)

Website References: 1. http://www.echoecho.com/applets.htm 2. http://www.realapplets.com/tutorial/ 3. http://java.sun.com/applets/ 4. http://www.javabeginner.com/java-swing-tutorial.htm 5. http://www.codeguru.com/java/articles/122.shtml

Unit – VIII : Networking Objective:

• To get familiarize in designing network based applications using java. • To establish client – server communication.

Concepts:

 Networking

o Basics of network programming. o IPAddresses, Ports, Sockets.

o Simple Client – Server communication. o Exploring java.net packages.

Text Books:

 Java:The Complete Reference Herbert Schield

 Internet and Java Programming, R.Krishna Murthy & S.Prabhu  Java How to program Deitel and Deitel, 6th edition

 Java Somasundaram Jaico

 Java Examples in NUTSHELL David Flanagan Oreilly Website References :

1. http://www.javacoffeebreak.com/java109/java109.html

2. http://www.particle.kth.se/~lindsey/JavaCourse/Book/Part2/Chapter13/javaNetworking.html 3. http://www.unix.com.ua/orelly/java-ent/dist/ch02_01.htm

References

Related documents

Suppose an Oracle 10g Enterprise database has been installed on the host liang.armstrong.edu with HTTP server enabled, the user can access it from a Web browser using the

4 (3) "Surgical technologist" means ((a person, regardless of title, 5 who is supervised in the surgical setting under the delegation of 6 authority of a health

9 The Respondent contends these exhibits should be excluded on the basis that the Department has provided no foundation for them, and “[a]bsent a witness to testify as to the

Tool providers understood that the drivers of different companies using their tools may vary but the general information they needed to improve their sustainable packaging design

In 2001, Cossy reported an iterative sequence utilizing enantioselective allyltitanations and chemoselective cross-metathesis reactions to synthesize the C1-C14

Lipase-catalyzed transesterification reactions were performed between short- and medium-chain fatty acid ethyl esters and glycerol.. Different variables were investigated, such as

The TRT system had lower weaning and slaughter breakeven, lower cost per weaned calf, and greater profit potential when finished steers were sold on a live basis.. more economical

had begun much earlier specifically with the announcement of the Simon Commission but a Nationalist view point suggests that it was the long struggle of the people