Beruflich Dokumente
Kultur Dokumente
Java Cryptography Java-based crypto products We make your world more secure! jce.iaik.tugraz.at
Java Jobs for Freshers. MNC's Hiring Freshers Now. Submit Your Resume Free. Monsterindia.com
Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP
| RMI | Web-Services | Servlets | Struts | UML Ads by Google Java Question Jobs in Java Java E
Struts Tutorials
*Stuts TOC
*Apache Struts Introduction
* Struts Controller Question: Name the containers which uses Border Layout as their default layout?
* Struts Action Class Answer: Containers which uses Border Layout as their default are: window, Frame
* Struts ActionFrom Class and Dialog classes.
* Using Struts HTML Tags
*Struts Validator
Framework
Question: What do you understand by Synchronization?
*Client Side Address
Validation Answer: Synchronization is a process of controlling the access of shared resources
*Struts Tiles
by the multiple threads in such a manner that only one thread can access one
*tiles-defs.xml
*Struts DynaActionForm resource at a time. In non synchronized multithreaded application, it is possible for
*Struts File Upload
one thread to modify a shared object while another thread is in the process of using
*Struts DataSource
*AGGREGATING ACTIONS or updating the object's value. Synchronization prevents such type of data
*Internationalization
corruption.
Struts Resources
*Struts Books
E.g. Synchronizing a function:
*Struts Articles public synchronized void Method1 () {
*Struts Frameworks
*Struts IDE
// Appropriate method-related code.
*Struts Links }
*Struts Presentations
*Struts Projects
E.g. Synchronizing a block of code inside a function:
*Struts Software public myFunction (){
*Other Struts Tutorial
*Other Struts Tutorial
synchronized (this) {
// Synchronized code here.
}
! Post Questions! Web www.roseindia.net
Jobs At RoseIndia.net! } Google Search
Similarities:
Scrollable result sets- using new methods in the ResultSet interface allows
programmatically move the to particular row or to a position relative to its current
position
JDBC 2.0 Core API provides the Batch Updates functionality to the java
applications.
Java applications can now use the ResultSet.updateXXX methods.
New data types - interfaces mapping the SQL3 data types
Custom mapping of user-defined types (UTDs)
Miscellaneous features, including performance hints, the use of character
streams, full precision for java.math.BigDecimal values, additional security, and
support for time zones in date, time, and timestamp values.
Public
Protected
Private
Defaults
Primitive Wrapper
boolean java.lang.Boolean
byte java.lang.Byte
char java.lang.Character
double java.lang.Double
float java.lang.Float
int java.lang.Integer
long java.lang.Long
short java.lang.Short
void java.lang.Void
Question: What is the difference between the instanceof and getclass, these two are
same or not ?
Answer: instanceof is a operator, not a function while getClass is a method of
java.lang.Object class. Consider a condition where we use
if(o.getClass().getName().equals("java.lang.Math")){ }
This method only checks if the classname we have passed is equal to
java.lang.Math. The class java.lang.Math is loaded by the bootstrap ClassLoader.
This class is an abstract class.This class loader is responsible for loading classes.
Every Class object contains a reference to the ClassLoader that defines. getClass()
method returns the runtime class of an object. It fetches the java instance of the given
fully qualified type name. The code we have written is not necessary, because we
should not compare getClass.getName(). The reason behind it is that if the two
different class loaders load the same class but for the JVM, it will consider both
classes as different classes so, we can't compare their names. It can only gives the
implementing class but can't compare a interface, but instanceof operator can.
The instanceof operator compares an object to a specified type. We can use it to test
if an object is an instance of a class, an instance of a subclass, or an instance of a
class that implements a particular interface. We should try to use instanceof operator
in place of getClass() method. Remember instanceof opeator and getClass are not
same. Try this example, it will help you to better understand the difference between
the two.
Interface one{
}
Current Comments
445 comments so far (post your own) View All Comments Latest 10 Comments:
sir please give me information about volatile variable?
class A{
p.s.v.m(string args[])
{
int a;
s.o.prinln(a);
}
}
it will give error because initialization.
so i need like this small and large progarms
and also they asked abt rmi package i need that also
can you provide me my id please please. i need it.
Home | JSP | EJB | JDBC | Java Servlets | WAP | Free JSP Hosting | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs