JAWAHARLAL NEHRU TECHNOLOGICAL UNIVERSITY HYDERABAD

CS703OE: JAVA PROGRAMMING

B.Tech IV Year I Semester (R18)

Prerequisites:

  • 1. A course on “Computer Programming & Data Structures”

Course Objectives:

  • Introduces object-oriented programming concepts using the Java language.
  • Introduces the principles of inheritance and polymorphism; and demonstrates how they relate to the design of abstract classes
  • Introduces the implementation of packages and interfaces
  • Introduces exception handling, event handling and multithreading
  • Introduces the design of Graphical User Interface using applets and AWT

Course Outcomes:

  • Develop Programs with reusability
  • Develop programs to handle multitasking
  • Develop programs to handle exceptions
  • Develop applications for a range of problems using object-oriented programming techniques
  • Design simple Graphical User Interface applications

UNIT - I

Object oriented thinking and Java Basics- Need for oop paradigm, summary of oop concepts, History of Java, Java buzzwords, data types, variables, scope and life time of variables, arrays, operators, expressions, control statements, type conversion and casting, simple java program, concepts of classes, objects, constructors, methods, access control, this keyword, garbage collection, overloading methods and constructors, parameter passing, recursion, nested and inner classes, exploring string class.

UNIT - II

Inheritance, Packages and Interfaces – Hierarchical abstractions, Base class object, subclass, subtype, substitutability, forms of inheritance- specialization, specification, construction, extension, limitation, combination, benefits of inheritance, costs of inheritance. Member access rules, super uses, using final with inheritance, polymorphism- method overriding, abstract classes, the Object class. Defining, Creating and Accessing a Package, Understanding CLASSPATH, importing packages, differences between classes and interfaces, defining an interface, implementing interface, applying interfaces, variables in interface and extending interfaces. Exploring java.io.

UNIT - III

Exception handling and Multithreading-- Concepts of exception handling, benefits of exception handling, exception hierarchy, usage of try, catch, throw, throws and finally, built in exceptions, creating own exception sub classes. String handling, Exploring java.util.

UNIT - IV

Event Handling: Events, Event sources, Event classes, Event Listeners, Delegation event model, handling mouse and keyboard events, Adapter classes. The AWT class hierarchy, user interface components- labels, button, canvas, scrollbars, text components, check box, check box group, choices, lists, dialog box, handling menus, layout manager: layout manager types – border, grid, flow, card and grid bag.

UNIT - V

Multi-Threading: Differences between multi-threading and multitasking, thread life cycle, creating threads, thread priorities, synchronizing threads, interthread communication, thread groups, daemon threads.

Applets – Concepts of Applets, differences between applets and applications, life cycle of an applet, types of applets, creating applets, passing parameters to applets.

TEXT BOOKS:

  • 1. Java the complete reference, 7th edition, Herbert Schildt, TMH.
  • 2. Understanding OOP with Java, updated edition, T. Budd, Pearson Education.

REFERENCE BOOKS:

  • 1. An Introduction to programming and OO design using Java, J.Nino and F.A. Hosch, John Wiley & sons.
  • 2. Introduction to Java programming, Y. Daniel Liang, Pearson Education.
  • 3. An introduction to Java programming and object-oriented application development, R.A. Johnson- Thomson.

Loading Question Papers

Fetching data from database...