×
Every problem might not have a solution right now, but don’t forget that but every solution was once a problem.
--Your friends at LectureNotes
Close

Note for Advanced Java Programming - AJP By Umesh Kumar

  • Advanced Java Programming - AJP
  • Note
  • Guru ghasidas central university bilaspur - Ggu
  • Master of Computer Applications
  • 5 Topics
  • 11582 Views
  • 14 Offline Downloads
  • Uploaded 9 months ago
Umesh Kumar
Umesh Kumar
0 User(s)
Download PDFOrder Printed Copy

Share it with your friends

Leave your Comments

Text from page-1

lecture NOteS ON ADVANceD JAVA PrOGrAMMING McA II YeAr III SeMeter (SuBcOD-303) Mr. uMeSH KuMAr, McA DePArtMeNt OF cOMPuter ScIeNce AND INFOrMAtION tecHNOlOGY Guru GHASIDAS VISHWAVIDYAlAY,BIlASPur BIlASPur,(c.G),KONI ,cHHAttISAGArH 495009 By Mr. UMESH KUMAR, MCA (GGU)Page | 1

Text from page-2

ADVANceD JAVA PrOGrAMMING Basics of Core JAVA: class, interface, exception handling.Collections : Collection Interfaces, Concrete Collections, The Collections Framework Multithreading : Creating thread and running it, Multiple Thread acting on single object,Synchronization, Thread communication, Thread group, Thread priorities, Daemon Thread, Life Cycle of Thread. Networking:Internet Addressing, InetAddress, Factory Methods, Instance Methods, TCP/IP ClientSockets, URL, URL Connection, TCP/IP Server Sockets, Datagrams.Java Database Connectivity (JDBC): Merging Data from Multiple Tables: Joining, Manipulating, Databases with JDBC, Prepared Statements, Transaction Processing, Stored Procedures. Servlets: Servlet Overview and Architecture, Interface Servlet and the Servlet Life Cycle, HandlingHTTP get Requests, Handling HTTP post Requests, Redirecting Requests to Other Resources, Session Tracking, Cookies, Session Tracking with HttpSession. Java Server Pages (JSP): Introduction, JavaServer Pages Overview, A First JavaServer Page Example, Implicit Objects, Scripting, Standard Actions, Directives, Custom Tag Libraries, EnterpriseJava Bean: Preparing a Class to be a JavaBean, Creating a JavaBean, JavaBean Properties,Types of beans, Stateful Session bean, Stateless Session bean, Entity bean Remote Method Invocation: Defining the Remote Interface, Implementing the Remote Interface, Compiling and Executing the Server and the Client, Struts: Basics of Struts,Struts : What and Why?,Model1 vs Model2 ,Struts2 Features,Steps to create Struts application ,Understanding Action class ,Understanding struts.xml fi By Mr. UMESH KUMAR, MCA (GGU)Page | 2

Text from page-3

Unit - 1 Basic of Core Java Basics of Core JAVA: Class-: A class is a group of objects which have common properties. It is a template or blueprint from which objects are created. It is a logical entity. It can't be physical. A class in Java can contain:  Fields  Methods  Constructors  Blocks  Nested class and interface Syntax to declare a class: class <class_name> { field; method; } Other definition Class-:  A class is the blueprint from which individual objects are created.  A class is a group of objects which have common properties.  It is a template or blueprint from which objects are created.  It is a logical entity. It can't be physical. A class in Java can contain:  Fields.  Methods.  Constructors.  Blocks.  Nested class and interface Class by Example-:  In the real world, you’ll often find many individual objects all of the same kind.  There may be thousands of other bicycles in existence , all of the same make and model.  Each bicycle was built from the same set of blueprints and therefore contains the same components.  In object-oriented terms, we say that your bicycle is an instance of the class of object knows as bicycles. Syntax-: Class className { // variables // methods By Mr. UMESH KUMAR, MCA (GGU)Page | 3

Text from page-4

} Here’s an example Program-:write write a program to explain Setter & Getter method with String variable class. class SetterGetterclass { public static void main(String args[]) { A ob = new A(); ob.setMessage("Stylish_Boy"); System.out.println(" Welcome to " + ob.getMessage() + "!!!"); } } class A { private String message; public void setMessage(String msg) { message = msg; } public String getMessage() { return message; } } Output-: Interface-:  An interface is a group of related methods with empty bodies.  The interface in java is a mechanism to achieve fully abstraction.  There can be only abstract method in the java interface not method body. body  It is used to archive fully abstraction and multiple inheritance in java.  Java interface also represents IS IS-A relationship.  It can’t be instantiated just like abstract class. By Mr. UMESH KUMAR, MCA (GGU)Page | 4

Lecture Notes