java handout
TRANSCRIPT
![Page 1: Java Handout](https://reader036.vdocuments.mx/reader036/viewer/2022081804/55253d66550346586f8b4722/html5/thumbnails/1.jpg)
SHRI VISHNU ENGINEERING COLLEGE FOR WOMEN:: BHIMAVARAMDEPARTMENT 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
![Page 2: Java Handout](https://reader036.vdocuments.mx/reader036/viewer/2022081804/55253d66550346586f8b4722/html5/thumbnails/2.jpg)
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/
Unit – III : Inheritance
![Page 3: Java Handout](https://reader036.vdocuments.mx/reader036/viewer/2022081804/55253d66550346586f8b4722/html5/thumbnails/3.jpg)
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 classo Inheritance Typeso Implementation of Inheritance in Javao Member access rules.o Using super keywordo Constructor Behavior in sub class. o Using final with Inheritanceo Method Overridingo Runtime polymorphismo 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/
![Page 4: Java Handout](https://reader036.vdocuments.mx/reader036/viewer/2022081804/55253d66550346586f8b4722/html5/thumbnails/4.jpg)
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.
Interfaceso 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
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
![Page 5: Java Handout](https://reader036.vdocuments.mx/reader036/viewer/2022081804/55253d66550346586f8b4722/html5/thumbnails/5.jpg)
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.
Multithreadingo 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=7543. http://mindprod.com/jgloss/exception.html4. http://www.developer.com/java/article.php/14558915. http://tutorials.jenkov.com/java-exception-handling/index.html6. http://www.roseindia.net/java/beginners/ExceptionHandle.shtml7. http://www.slideshare.net/parag/exception-handling-in-java8. http://docs.rinet.ru/JWP/ch16.htm9. http://www.ibm.com/developerworks/library/j-thread.html10. http://www.cs.umd.edu/class/spring2006/cmsc132/Slides/lec34.pdf11. http://www.geekpedia.com/tutorial289_Multithreading-Fundamentals-in-Java.html
12. http://www.cs.tau.ac.il/~yahave/multithread.htm
![Page 6: Java Handout](https://reader036.vdocuments.mx/reader036/viewer/2022081804/55253d66550346586f8b4722/html5/thumbnails/6.jpg)
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 Handlingo Events, Event soruces, Event classes, Event Listeners.o Delegation event model.o Handling mouse and keyboard events.o Adapter Classes.o Inner Classes.
AWT Componentso Components and containers.o Frame,Canvas,Panel.o Labels,Text Components, Buttons, Checkbox,CheckBoxGroups.o Choices, Lists.o ScrollPane, Dialogs.o Menus, Graphics.
Layout Managerso 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
Core Java 2 Advanced Features Cay.S.Horstmann & Gary Cornell 7th edition LPE
![Page 7: Java Handout](https://reader036.vdocuments.mx/reader036/viewer/2022081804/55253d66550346586f8b4722/html5/thumbnails/7.jpg)
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
![Page 8: Java Handout](https://reader036.vdocuments.mx/reader036/viewer/2022081804/55253d66550346586f8b4722/html5/thumbnails/8.jpg)
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 Componentso 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
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
![Page 9: Java Handout](https://reader036.vdocuments.mx/reader036/viewer/2022081804/55253d66550346586f8b4722/html5/thumbnails/9.jpg)
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
4. http://www.cafeaulait.org/books/jnp/javanetexamples/