Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword
Like this
11Activity
0 of .
Results for:
No results containing your search query
P. 1
J2EE

J2EE

Ratings:

5.0

(1)
|Views: 534 |Likes:
Published by api-3771119

More info:

Published by: api-3771119 on Oct 16, 2008
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

03/18/2014

pdf

text

original

1
Reference Material on J2EE technology
Mr. P. Suresh Kumar
By
Mr. L. Madhav
(http://www.geocities.com/megamadhu
http://free.7host06.com/lmadhav
Java 2 Enterprise
Edition (J2EE)
)
My sincere thanks to Mr. T. Ravi Kiran for providing notes on
JBBC, CORBA, RMI and other friends who have supported me.
2
Contents:
Chapter 1
Introduction
03
Required Concepts (JDBC, CORBA and RMI)
06
Chapter 2
XML
41
Chapter 3
HTTP
50
Servlets
52
JSP
71
Chapter 4
Java Beans
78
Struts
90
EJB
98
Chapter 5
JMS
117
Java Mail
121
Web Services
123
3
Introduction:
javap can be used by the programmers to find the info about a java class. It
can also be used to disassemble the code that should in a class file.
Ex:
javap <options> <classes>
javap java.lang.Integer

When we compile a java class file, the java compiler generates a class file in
byte code (numbers representing instructions). When javap tool is executed
with -c option these numbers will be converted as instructions like getstatic,
return \u2026
As part of the Object class we have an implementation oftoString(),

hashCode() methods. Depending upon our requirement we may need to
provide the implementation of these methods.
The implementation ofhashCode provided by Java Soft may not be suitable
for our classes. In this case we need to implement our own logic for
hashCode. The objects representing the same information must return the
same hashcode.

Apart from implementinghashCode we need to implementequals() \u2013
returns true if your objects are considered to be equal.
Even thoughequals was implemented as part of object class this may not
satisfy our requirements. In such a case we need to overrideequals().

*We have to overrideequals() wheneverhashCode() is overridden.
toString() provided as part of object class returns the name of the class and
the hashcode. This may not be that useful in debugging the code.
toString()
Used for debugging
hashCode()
equals()

Most of the programmers debug their applications by including the
statements that displays the information about the object. It is always
advisable to providetoString() that returns the info about the object.
Its our responsibility to return useful info fromtoString() method.

Used to identify whether the
ob
j
ects are same or not

Activity (11)

You've already reviewed this. Edit your review.
1 hundred reads
1 thousand reads
davidrey29 liked this
wilians liked this
Dev Vishwakarma liked this
Molla Mofijul liked this
rajendra245 liked this
Suneeth Raj liked this
PMS_SARA07 liked this
talk2muni liked this

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->