0% found this document useful (0 votes)
95 views

II BCA JAVA-NEP-updated

Uploaded by

ksaryan08
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
95 views

II BCA JAVA-NEP-updated

Uploaded by

ksaryan08
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 5

PROGRAMMING IN JAVA

Credits: 3 Hours: 45

Course Objective:
• To inculcate knowledge on the architecture-neutral nature of Java and the concepts of Object
Oriented programming.

Course Outcomes:
After successful completion of the course, the student will be able to:

• understand Procedural and Object-oriented Programming Paradigms


• implement control fundamentals to construct windows and frame based GUI
• develop windows and AWT based applications

Unit 1: Introduction to Java and Features of Java 7 hrs


History; Evolution of Java; How Java changed internet; Basic concepts of object-oriented programming;
Benefits of object-oriented programming; Features of Java; How Java differs from C and C++; Structure;
Java development kit (JDK); Java interpreter; Java virtual machine. Data types; Variable; Type
conversion and casting; Operators and expressions; Programming structure; Operators and expressions;
Decision-making and branching: If; If.. Else; Nested If; Switch;?: Operator; Looping: While; Do; For –
Jumps In Loops - Labeled loops; Array – Types of arrays; String handling.

Unit 2: Classes Inheritance Packages & Interfaces 13 hrs


Classes - Class fundamentals; Methods; Naming conventions; Declaring objects; Access specifiers;
Constructors; Command line arguments; keyword ; this, final; Static; abstract, finalize. Method
Overloading.
Inheritance - Single; Multilevel inheritance; Method overriding-Dynamic method dispatch; Abstract
classes, Usage of super.
Interfaces-Defining an interface; Implementing interfaces; Extending interfaces.
Package - Define package; CLASS PATH; Access protection; Importing packages. Lang-Package -
Wrapper classes.

Unit 3: Exception Handling Multithreading 7 hrs


Exception Handling - Fundamental of exception; Exception types; Using try & catch; Multiple catch;
Nested try; Throw; Finally; Built-in exception; User-defined exception.
Multithreading-Thread fundamentals; Priorities; Creating thread using thread class and runnable
interface.

Unit 4: Applets & Event Handling 8 hrs


Applet- Basics; Applet architecture; Applet life cycle; Applet display methods; Repaint; Status window,
Sample Applet Program.
Event Handling – Event handling mechanisms; Delegation event model; Event classes; Sources of
events; Event listener interfaces; Handling mouse and keyboard events; Adapter classes; Inner classes.

Unit 5: AWT & AWT Controls 10 hrs


AWT-AWT classes; Window fundamentals; Working with frame windows; Creating a frame window in
an applet; Creating a windowed program; Displaying information within a window.
AWT Controls-Layout managers and menus – Control fundamentals; Labels; Buttons; Check boxes;
Check box group; Choice control; Lists; Scroll bar; Text field; Text area; Layout managers; Menu bars
and Menus; Dialog boxes; File dialog; Handling events by extending AWT components.
Introducing Swing – Origins; Features; MVC connection; Components & containers; Simple swing
application; Swing applet.

Text Books:
Balagurusamy. E. Programming with JAVA a Primer. New Delhi: Tata McGraw- Hill Publishing
Company Limited.
Herbert Schildt. The Complete Reference- Java (7th ed.).New Delhi: Tata McGraw-Hill Publishing
Company Limited.

References:
Daniel Liang Y.(2007). Introduction to JAVA Programming (6th ed.). Pearson Education.
Deitel and Deitel. Java Programming. Prentice Hall.
Debasish Jana. (2005).Java and Object-Oriented Programming Paradigm, PHI.
John Hubbard R. Programming With Java( 2nd ed.). TMH.
Kathy Sierra. Head First Java. (2nded.).O'Reilly Media.
NageswaraRao. R. (2008).CORE JAVA An Integrated Approach. Dream tech Press.
PROGRAMMING IN JAVA

Course Outcome Mapping with syllabus

Syllabus Course Outcome


Unit 1 - Introduction to Java and CO1
Features of Java
Unit 2 - Classes Inheritance CO1
Packages & Interfaces
Unit 3 - : Exception Handling CO1
Multithreading
Unit 4: Applets & Event Handling CO2, CO3
Unit 5: AWT & AWT Controls CO2, CO3
PROGRAMMING IN JAVA PRACTICAL
Credits: 2 Hours:
Course Objective:
• To inculcate knowledge on the architecture-neutral nature of Java and the concepts of Object
Oriented programming.
Course Outcomes:
After successful completion of the course, the student will be able to:
• build sequential, decision making and iterative Java programs
• design GUI based applications using applets and frames

1. Write a program to display all prime numbers between a given range.


2. Write a program to implement at least six String methods.
3. Write a program to insert element in existing array.
4. Java program to execute any Windows95 application (Like notepad calculator)
5. Java program to find out total memory, free memory and free memory after executing garbage
collector (gc ( )).
6. Write a program to find area of geometrical figures using method overloading.
7. Write a java program to implement Exception Handling.
8. Write a java program to create an Interface and implement it in a class.
9. Write a java program to create a class by extending the Thread class and use the methods of
Thread class to change name, priority of the current Thread and display the same.
10. Write a Java program to implement mouse events.
11. Create a text field that allows only numeric value and in specified length.
12. Create a Frame and checkbox group with five checkboxes, with label as Red, Green, Blue, Yellow
and White. At runtime change the background color of the frame with appropriate selection of
the checkbox and also change its color after every 2 seconds.
13. Write a program to display a frame with a button. The caption of the button should be “Change
Color”. For every click of the button, the background color of the frame should change randomly.
Evaluation Criteria
Criteria Marks

Writing any two programs from the given 5 x 2 = 10


three questions

Executing the written two program. 5 * 2= 10

Viva Voce 5

Total 25
PROGRAMMING IN JAVA PRACTICAL

Course Outcome Mapping with syllabus

Syllabus Course Outcome


Programs 1 to 9 CO1
Programs 10 to 13 CO2

You might also like

pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy