Muesoft Technologies ( www.muesoft.com )
http://www.ChetanaS.org
MUESOFT TECHNOLOGIES is a Microsoft Certified Partner with accent to Software consulting, Product Development,Web services, Training & HR consulting.
The HR services wing of Muesoft, currently takes care of Talent attraction & staffing services for premier IT brands.
As Muesoft understands it's clients needs thoroughly, applicants will get a response within 24 hours from posting the CV in response to our ADs & a suitability check will be carried out to match the candidates interest & the projects available!
Muesoft is currently retained by a leading Indian Internet giant, in provide special talent hunt solutions!
With the intention of bridging the Academic & Industry gaps, Muesoft partners with colleges in training & co-ordinates campus placements as well.
JAVA Freshers - 2007 / 2008 batch
Desired Skills :
- Strong Core JAVA, J2EE technologies, EJB, JSP, Servelets, JBoss, JMS, Eclipse, Struts, Hibernate, Swing,XML, using SQL
- DotNet Technologies (VB, ASP, C#) with SQL Server, MS Access, Oracle9i
- ICE Storm services, CLARITY would be a plus.
- Self-starter, Strong Database concepts would be plus.
Key Skills: Java, Asp.Net, HTML/Dream Weaver/Flash/PHP
Education: BE / B.Tech / MCA / MSc
Job Location : Chennai
Desired Experience : 0-1 Years
Walk-In Date: 11 Oct 2008 & 12 Oct 2008 | Time : 10 AM to 5.30 PM
Venue: Muesoft Technologies,
No: 1,2nd Floor,Sri Balaji Complex, S.V.S.Nagar 1st Main Road,
Valasarawakkam,Chennai-600087.
http://www.ChetanaS.org
Contact Name: Mr.Anandh
______________________________________________________________
3I INFOTECH ( www.3i-infotech.com )
About Company
3i Infotech is a global Information Technology company which provides technology solutions to over 500 customers in more than 50 countries across 5 continents, spanning a range of verticals - Banking, Insurance, Manufacturing, Contracting, Retail & Distribution and Government.
3i Infotech offers a comprehensive range of software and IT Solutions, including packaged applications for the Banking, Financial Services & Insurance (BFSI), Manufacturing, Contracting, and Retail & Distribution industries. In addition, it offers a broad range of software services such as Custom Software Development, IT Consulting, IS and IT Security Consulting, Enterprise Application Integration (EAI), Managed IT Services, and specialized services such as Product Re-engineering, Compliance Consultancy, Application Rehabilitation and e-Governance, among others.
The Company's quality certifications include SEI CMMI Level 5 for Software business and ISO 9001:2000 for Infrastructure Services and Business Process Outsourcing (BPO) operations.
The Company's Global Delivery Model provides for the best resources to be drawn from its vast talent pool across the globe to offer optimal solutions.
The Company's list of customers worldwide includes Prudential Assurance, Finansa, AIG, Emirates Bank, RAK Bank, Hong Leong Bank, SBI Factors, Oriental Insurance Company Limited, National Health Insurance Fund, Solidarity Islamic Insurance & Assurance Co., Comercial America Insurance Company, National Takaful Insurance, Hirsch International Corporation, Pidilite Industries, among others.
The Company was promoted by the NYSE-listed ICICI Bank, India's largest private sector bank. 3i Infotech integrates its products and services to create customized solutions to allow you to undertake technology-based business transformation that allows reorganization in line with today's dynamic digital business environment.
The Company offers the following range of enterprise services and solutions to meet varying customer requirements:
http://www.ChetanaS.org
Solutions
Insurance
Banking
Capital Market
Mutual Funds
Enterprise Resource Planning (ERP)
E-Governance
Products
Premia - Insurance Management
Kastle - Secure Banking Solutions
AMLOCK - Anti Money Laundering & Fraud Detection
iBOSS - Integrated Broker Office Solutions Suite
AWACS - Stock Exchange Surveillance
MFund - Mutual Funds
Orion - Enterprise Resource Planning (ERP)
Xroadz - Enterprise Relationship Management (ERM)
Veda - Recruitment Automation Solution
DataScan.Online - Document Management System
DataFlo - Business Process Workflow Management System
Services
Business Process Outsourcing
Managed IT Services
IT Outsourcing
Custom Software Development
Product Re-engineering
Application Rehabilitation
Compliance Consulting
Packaged Application Implementation
Enterprise Application Integration (EAI)
E-Governance
R&T and Fund Accounting
Data Warehousing & Business Intelligence
Company Locations in India : Mumbai, Bangalore, Chennai
Useful Links :-
3I INFOTECH - Latest Placement Papers (Freshers) :
More Details about Company : http://www.3i-infotech.com/About/Profile.aspx
Company Locations (India) : http://www.3i-infotech.com/contact/contact.aspx
Company WebSite (India) : http://www.3i-infotech.com
Current Job Requirements (India) : http://www.3i-infotech.com/careers/careers.aspx|75|1,75
Jobs
Tuesday, October 7, 2008
::Learn Java Quickly
Java is an object oriented programming language developed by Sun Microsystems. This is freely available to public for all purposes from personal website development to big enterprises. It looks lot like C and C++ but has various extra-developed features that make it safer, easier and more useful than other object oriented languages. It is now most demanded programming skill used for developing various web-based application in e-commerce and universities. Go to Home
The most important feature of Java is that it can run on different types of computer without any modification. This feature is popularly known as “Write once, run anywhere”. Again, it is used widely with Server Side web programming, where the program runs on the web server and the user can see the page using any web browser. Also programs developed by using Java technology can be sold without paying or consulting to the Sun Microsystems.
Java Virtual Machine (JVM)
It is the principal component of Java architecture that provides the cross platform functionality and security to Java. This is a Software process that converts the compiled Java byte code to machine code. Byte code is an intermediary language between Java source and the host system
Most programming language like C and Pascal translate the source code into machine code for one specific type of machine as the machine language vary from system to system. So most complier produce code for a particular system but Java compiler produce code for a virtual machine. The translation is done in two steps. First the programs written in Java or the source code translated by Java compiler into byte code and after that the JVM converts the byte code into machine code for the computer one wants to run. Go to Home
So the programs files written in Java are stored in .java files and the .java files are compiled by the Java compiler into byte code that are stored in .class file. The JVM later convert it into machine code. In fact the byte code format is same on all platforms as it runs in the same JVM and it is totally independent from the operating system and CPU architecture. JVM is a part of Java Run Time Environment that is required by every operating system requires a different JRE. JRE consists of a number of classes based on Java API and JVM, and without JRE, it is impossible to run Java. So its portability really made it possible in developing write once and run anywhere software.
In the following figure you can see the function of JVM
How to write your First Java program
Ok, now you know the basics of Java programming and have downloaded the Java Development Kit (JDK), then its time to write your first Java program.
Create a source code program in any of the text editor available like jEdit, Notepad, TextPad etc. Java program is a class with a main method in it. The main method is the starting point for every Java application. So first define the class name and lets take it as FirstProgram and write it in the text editor like below Go to Home
public class FirstProgram
{
public static void main(String[] args)
{
System.out.println("Hey! you are going to compile and run your first Java program");
}
}
Here System.out.println is the incantation that one uses to get codes sent to the console. Now save the file with same name as the public class just adding the extension “.java” . Here for example FirstProgram.java. If you use a different name other than the existing class name then you will face while compiling.
After completing the above, open a doss command window and type cd to the directory in which your source file exists. Type the following code to compile the file. This should be like this:
javac FirstProgram.java
If you compile it successfully, then you can find a class file in your directory with the same name, which is the bytecode form of Java program. Now type FirstProgram.java to run the program.
The JVM now will run the bytecode in the FirstProgram.class file. Now you will see the output on your screen as:
Hey! you are going to compile and run your first Java program
Congratulation! Now you have successfully developed your first Java program. Go to Home
The most important feature of Java is that it can run on different types of computer without any modification. This feature is popularly known as “Write once, run anywhere”. Again, it is used widely with Server Side web programming, where the program runs on the web server and the user can see the page using any web browser. Also programs developed by using Java technology can be sold without paying or consulting to the Sun Microsystems.
Java Virtual Machine (JVM)
It is the principal component of Java architecture that provides the cross platform functionality and security to Java. This is a Software process that converts the compiled Java byte code to machine code. Byte code is an intermediary language between Java source and the host system
Most programming language like C and Pascal translate the source code into machine code for one specific type of machine as the machine language vary from system to system. So most complier produce code for a particular system but Java compiler produce code for a virtual machine. The translation is done in two steps. First the programs written in Java or the source code translated by Java compiler into byte code and after that the JVM converts the byte code into machine code for the computer one wants to run. Go to Home
So the programs files written in Java are stored in .java files and the .java files are compiled by the Java compiler into byte code that are stored in .class file. The JVM later convert it into machine code. In fact the byte code format is same on all platforms as it runs in the same JVM and it is totally independent from the operating system and CPU architecture. JVM is a part of Java Run Time Environment that is required by every operating system requires a different JRE. JRE consists of a number of classes based on Java API and JVM, and without JRE, it is impossible to run Java. So its portability really made it possible in developing write once and run anywhere software.
In the following figure you can see the function of JVM
How to write your First Java program
Ok, now you know the basics of Java programming and have downloaded the Java Development Kit (JDK), then its time to write your first Java program.
Create a source code program in any of the text editor available like jEdit, Notepad, TextPad etc. Java program is a class with a main method in it. The main method is the starting point for every Java application. So first define the class name and lets take it as FirstProgram and write it in the text editor like below Go to Home
public class FirstProgram
{
public static void main(String[] args)
{
System.out.println("Hey! you are going to compile and run your first Java program");
}
}
Here System.out.println is the incantation that one uses to get codes sent to the console. Now save the file with same name as the public class just adding the extension “.java” . Here for example FirstProgram.java. If you use a different name other than the existing class name then you will face while compiling.
After completing the above, open a doss command window and type cd to the directory in which your source file exists. Type the following code to compile the file. This should be like this:
javac FirstProgram.java
If you compile it successfully, then you can find a class file in your directory with the same name, which is the bytecode form of Java program. Now type FirstProgram.java to run the program.
The JVM now will run the bytecode in the FirstProgram.class file. Now you will see the output on your screen as:
Hey! you are going to compile and run your first Java program
Congratulation! Now you have successfully developed your first Java program. Go to Home
::What is Java?
Java is a high-level object-oriented programming language developed by the Sun Microsystems. Though it is associated with the World Wide Web but it is older than the origin of Web. It was only developed keeping in mind the consumer electronics and communication equipments. It came into existence as a part of web application, web services and a platform independent programming language in the 1990s.
Earlier, C++ was widely used to write object oriented programming languages, however, it was not a platform independent and needed to be recompiled for each different CPUs. A team of Sun Microsystems including Patrick Naughton, Mike Sheridan in the guidance of James Goslings decided to develop an advanced programming language for the betterment of consumer electronic devices. They wanted to make it new Software based on the power of networks that can run on different application areas, such as computers and electronic devices. In the year 1991 they make platform independent software and named it Oak. But later due to some patent conflicts, it was renamed as java and in 1995 the Java 1.0 was officially released to the world.
Earlier, C++ was widely used to write object oriented programming languages, however, it was not a platform independent and needed to be recompiled for each different CPUs. A team of Sun Microsystems including Patrick Naughton, Mike Sheridan in the guidance of James Goslings decided to develop an advanced programming language for the betterment of consumer electronic devices. They wanted to make it new Software based on the power of networks that can run on different application areas, such as computers and electronic devices. In the year 1991 they make platform independent software and named it Oak. But later due to some patent conflicts, it was renamed as java and in 1995 the Java 1.0 was officially released to the world.
::Java Server Pages Technology::
JavaServer Pages:
JavaServer Pages (JSP) technology is the Java platform technology for delivering dynamic content to web clients in a portable, secure and well-defined way. The JavaServer Pages specification extends the Java Servlet API to provide web application developers with a robust framework for creating dynamic web content on the Server using HTML, and XML templates, and Java code, which is secure, fast, and independent of server platforms. JSP has been built on top of the Servlet API and utilizes Servlet semantics. JSP has become the preferred request handler and response mechanism. Although JSP technology is going to be a powerful successor to basic Servlets, they have an evolutionary relationship and can be used in a cooperative and complementary manner. Go to Home
Servlets are powerful and sometimes they are a bit cumbersome when it comes to generating complex HTML. Most servlets contain a little code that handles application logic and a lot more code that handles output formatting. This can make it difficult to separate and reuse portions of the code when a different output format is needed. For these reasons, web application developers turn towards JSP as their preferred servlet environment.
Evolution of Web Applications
Over the last few years, web server applications have evolved from static to dynamic applications. This evolution became necessary due to some deficiencies in earlier web site design. For example, to put more of business processes on the web, whether in business-to-consumer (B2C) or business-to-business (B2B) markets, conventional web site design technologies are not enough. The main issues, every developer faces when developing web applications, are:
1. Scalability - a successful site will have more users and as the number of users is increasing fastly, the web applications have to scale correspondingly. Go to Home
2. Integration of data and business logic - the web is just another way to conduct business, and so it should be able to use the same middle-tier and data-access code.
3. Manageability - web sites just keep getting bigger and we need some viable mechanism to manage the ever-increasing content and its interaction with business systems.
4. Personalization - adding a personal touch to the web page becomes an essential factor to keep our customer coming back again. Knowing their preferences, allowing them to configure the information they view, remembering their past transactions or frequent search keywords are all important in providing feedback and interaction from what is otherwise a fairly one-sided conversation.
Apart from these general needs for a business-oriented web site, the necessity for new technologies to create robust, dynamic and compact server-side web applications has been realized. The main characteristics of today's dynamic web server applications are as follows:
1. Serve HTML and XML, and stream data to the web client Go to Home
2. Separate presentation, logic and data
3. Interface to databases, other Java applications, CORBA, directory and mail services
4. Make use of application server middleware to provide transactional support.
5. Track client sessions
Now let us have a look on the role of Java technology and platform in this regard.
Java's Role for Server Applications
Sun Microsystems, having consulted many expert partners from other related IT industries, has come out with a number of open APIs for the technologies and services on server side. This collection of APIs is named as Java 2 Enterprise Edition (J2EE). The J2EE specification provides a platform for enterprise applications, with full API support for enterprise code and guarantees of portability between server implementations. Also it brings a clear division between code which deals with presentation, business logic and data. Go to Home
The J2EE specification meets the needs of web applications because it provides:
1. Rich interaction with a web server via servlets and built-in support for sessions available in both servlets and EJBs
2. The use of EJBs to mirror the user interaction with data by providing automatic session and transaction support to EJBs operating in the EJB server.
3. Entity EJBs to represent data as an object and seamless integration with the Java data access APIs
4. Flexible template-based output using JSP and XML
This family of APIs mean that the final web page can be generated from a user input request, which was processed by a servlet or JSP and a session EJB, which represents the user's session with the server, using data extracted from a database and put into an entity EJB. Thus, the Java revolution of portable code and open APIs is married with an evolution in existing products such as database, application, mail and web servers. The wide availability of products to run Java applications on the server has made this a fast-moving and very competitive market, but the essential compatibility through specifications, standard APIs and class libraries has held. This makes server-side Java a very exciting area. Go to Home
JavaServer Pages - An Overview
The JavaServer Pages 1.2 specification provides web developers with a framework to build applications containing dynamic web content such as HTML, DHTML, XHTML and XML. A JSP page is a text based document containing static HTML and dynamic actions which describe how to process a response to the client in a more powerful and flexible manner. Most of a JSP file is plain HTML but it also has, interspersed with it, special JSP tags.
There are many JSP tags such as:
1.JSP directive denoted by <%@, 2. scriplets indicated by <% ... %> tags and
directive includes the contents of the file sample.html in the response at that point.
To process a JSP file, we need a JSP engine that can be connected with a web server or can be accommodated inside a web server. Firstly when a web browser seeks a JSP file through an URL from the web server, the web server recognizes the .jsp file extension in the URL requested by the browser and understands that the requested resource is a JavaServer Page. Then the web server passes the request to the JSP engine. The JSP page is then translated into a Java class, which is then compiled into a servlet.
This translation and compilation phase occurs only when the JSP file is requested for the first time, or if it undergoes any changes to the extent of getting retranslated and recompiled. For each additional request of the JSP page thereafter, the request directly goes to the servlet byte code, which is already in memory. Thus when a request comes for a servlet, an init() method is called when the Servlet is first loaded into the virtual machine, to perform any global initialization that every request of the servlet will need. Then the individual requests are sent to a service() method, where the response is put together. The servlet creates a new thread to run service() method for each request. The request from the browser is converted into a Java object of type HttpServletRequest, which is passed to the Servlet along with an HttpServletResponse object that is used to send the response back to the browser. The servlet code performs the operations specified by the JSP elements in the .jsp file. Go to Home
The Components of JSPs
JSP syntax is almost similar to XML syntax. The following general rules are applicable to all JSP tags.
1. Tags have either a start tag with optional attributes, an optional body, and a matching end tag or they have an empty tag possibly with attributes.
2. Attribute values in the tag always appear quoted. The special strings ' and " can be used if quotes are a part of the attribute value itself.
Any whitespace within the body text of a document is not significant, but is preserved, which means that any whitespace in the JSP being translated is read and preserved during translation into a servlet.
The character \ can be used as an escape character in a tag, for instance, to use the % character, \% can be used.
JavaServer Pages are text files that combine standard HTML and new scripting tags. JSPs look like HTML, but they get compiled into Java servlets the first time they are invoked. The resulting servlet is a combination of HTML from the JSP file and embedded dynamic content specified by the new tags. Everything in a JSP page can be divided into two categories:
1. Elements that are processed on the server Go to Home
2. Template data or everything other than elements, that the engine processing the JSP engines.
Element data or that part of the JSP which is processed on the server, can be classified into the following categories:
1. Directives
2. Scripting elements
3. Standard actions
JSP directives serve as messages to the JSP container from the JSP. They are used to set global values such as class declaration, methods to be implemented, output content type, etc. They do not produce any output to the client. All directives have scope of the entire JSP file. That is, a directive affects the whole JSP file, and only that JSP file. Directives are characterized by the @ character within the tag and the general syntax is:
The three directives are page, include and taglib.
Scripting elements are used to include scripting code (Java code) within the JSP. They allow to declare variables and methods, include arbitrary scripting code and evaluate an expression. The three types of scripting element are: Declaration, Scriptlets and Expressions. Go to Home
A declaration is a block of Java code in a JSP that is used to define class-wide variables and methods in the generated class file. Declarations are initialized when the JSP page is initialized and have class scope. Anything defined in a declaration is available throughout the JSP, to other declarations, expressions or code.
A scriptlet consists of one or more valid Java statements. A scriptlet is a block of Java code that is executed at request-processing time. A scriptlet is enclosed between "<%" and "%>". What the scriptlet actually does depends on the code, and it can produce output into the output stream to the client. Multiple scriptlets are combined in the compiled class in the order in which they appear in the JSP. Scriptlets like any other Java code block or method, can modify objects inside them as a result of method invocations.
An expression is a shorthand notation for a scriptlet that outputs a value in the response stream back to the client. When the expression is evaluated, the result is converted to a string and displayed, An expression is enclosed within <%= and %> "<%=" and "%>". If any part of expression is an object, the conversion is done using the toString() method of the object.
Standard actions are specific tags that affect the runtime behavior of the JSP and affect the response sent back to the client. The JSP specification lists some standard action types to be provided by all containers, irrespective of the implementation. Standard actions provide page authors with some basic functionality to exploit; the vendor is free to provide other actions to enhance behavior. Go to Home
How JSP and JSP Container function
A JSP page is executed in a JSP container or a JSP engine, which is installed in a web server or in a application server. When a client asks for a JSP page the engine wraps up the request and delivers it to the JSP page along with a response object. The JSP page processes the request and modifies the response object to incorporate the communication with the client. The container or the engine, on getting the response, wraps up the responses from the JSP page and delivers it to the client. The underlying layer for a JSP is actually a servlet implementation. The abstractions of the request and response are the same as the ServletRequest and ServletResponse respectively. If the protocol used is HTTP, then the corresponding objects are HttpServletRequest and HttpServletResponse. Go to Home
The first time the engine intercepts a request for a JSP, it compiles this translation unit (the JSP page and other dependent files) into a class file that implements the servlet protocol. If the dependent files are other JSPs they are compiled into their own classes. The servlet class generated at the end of the translation process must extend a superclass that is either
1. specified by the JSP author through the use of the extends attribute in the page directive or
2. is a JSP container specific implementation class that implements javax.servlet.jsp.JspPage interface and provides some basic page specific behavior.
Since most JSP pages use HTTP, their implementation classes must actually implement the javax.servlet.jsp.HttpJspPage interface, which is a sub interface of javax.servlet.jsp.JspPage.
The javax.servlet.jsp.JspPage interface contains two methods:
1. public void jspInit() - This method is invoked when the JSP is initialized and the page authors are free to provide initialization of the JSP by implementing this method in their JSPs.
2. public void jspDestroy() - This method is invoked when the JSP is about to be destroyed by the container. Similar to above, page authors can provide their own implementation.
The javax.servlet.jsp.HttpJspPage interface contains one method:
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException Go to Home
This method generated by the JSP container is invoked, every time a request comes to the JSP. The request is processed and the JSP generates appropriate response. This response is taken by the container and passed back to the client.
JSP Architecture
There are two basic ways of using the JSP technology. They are the client/server (page-centric) 2-tier approach and the N-tier approach (dispatcher).
The Page-Centric Approach
Applications built using a client-server (2-tier) approach consist of one or more application programs running on client machines and connecting to a server-based application to work. With the arrival of Servlets technology, 2-tier applications could also be developed using Java programming language. This model allows JSPs or Servlets direct access to some resource such as database or legacy application to service a client's request. The JSP page is where the incoming request is intercepted, processed and the response sent back to the client. JSPs differ from Servlets in this scenario by providing clean code, separating code from the content by placing data access in EJBs. Even though this model makes application development easier, it does not scale up well for a large number of simultaneous clients as it entails a significant amount of request processing to be performed and each request must establish or share a potentially scarce/expensive connection to the resource in question. Go to Home
Page-view - This basic architecture involves direct request invocations to a server page with embedded Java code, and markup tags which dynamically generate output for substitution within the HTML. This approach has been blessed a number of benefits. It is very straightforward and is a low-overhead approach from a developerment perspective. All the Java code may be embedded within the HTML, so changes are confined to a very limited area, reducing complexity drastically.
The big trade-off here is in the level of sophistication. As the scale of the system grows, some limitations begin to surface, such as bloating of business logic code in the page instead of factoring forward to a mediating Servlet or factoring back to a worker bean. It is a fact that utilizing a Servlet and helper beans helps to separate developer roles more cleanly and improves the potential for code reuse.
Page-view with bean - This pattern is used when the above architecture becomes too cluttered with business-related code and data access code. The Java code representing the business logic and simple data storage implementation in the previous model moves from the JSP to the JavaBean worker. This refactoring leaves a much cleaner JSP with limited Java code, which can be comfortably owned by an individual in a web-production role, since it encapsulates mostly markup tags.
The Dispatcher Approach
In this approach, a Servlet or JSP acts as a mediator or controller, delegating requests to JSP pages and JavaBeans. There are three different architectures. They are mediator-view, mediator-composite view and service to workers. Go to Home
In an N-tier application, the server side of the architecture is broken up into multiple tiers. In this case, the application is composed of multiple tiers, where the middle tier, the JSP, interacts with the back end resources via another object or EJBs component. The Enterprise JavaBeans server and the EJB provide managed access to resources, support transactions and access to underlying security mechanisms, thus addressing the resource sharing and performance issues of the 2-tier approach.
The first step in N-tiered application design should be identifying the correct objects and their interaction and the second step is identifying the JSPs or Servlets. These are divided into two categories.
Front end JSPs or Servlets manage application flow and business logic evaluation. They act as a point to intercept the HTTP requests coming from the users. They provide a single entry point to an application, simplifying security management and making application state easier to maintain.
Presentation JSPs or Servlets generate HTML or XML with their main purpose in life being presentation of dynamic content. They contain only presentation and rendering logic.
These categories resemble to the Modal-View design pattern, where the front-end components is the model and the presentation component the view. In this approach, JSPs are used to generate the presentation layer and either JSPs or Servlets to perform process-intensive tasks. The front-end component acts as the controller and is in charge of the request processing and the creation of any beans or objects used by the presentation JSP, as well as deciding, depending on the user's actions, which JSP to forward this request to. There is no processing logic within the presentation JSP itself and it simply responsible for retrieving any objects or beans that may have been previously created by the Servlet and extracting the dynamic content for insertion within static templates. Go to Home
Benefits of JSP
One of the main reasons why the JavaServer Pages technology has evolved into what it is today and it is still evolving is the overwhelming technical need to simplify application design by separating dynamic content from static template display data. Another benefit of utilizing JSP is that it allows to more cleanly separate the roles of web application/HTML designer from a software developer. The JSP technology is blessed with a number of exciting benefits, which are chronicled as follows:
1. The JSP technology is platform independent, in its dynamic web pages, its web servers, and its underlying server components. That is, JSP pages perform perfectly without any hassle on any platform, run on any web server, and web-enabled application server. The JSP pages can be accessed from any web server.
2. The JSP technology emphasizes the use of reusable components. These components can be combined or manipulated towards developing more purposeful components and page design. This definitely reduces development time apart from the At development time, JSPs are very different from Servlets, however, they are precompiled into Servlets at run time and executed by a JSP engine which is installed on a Web-enabled application server such as BEA WebLogic and IBM WebSphere. Go to Home
Conclusion
JSP and Servlets are gaining rapid acceptance as means to provide dynamic content on the Internet. With full access to the Java platform, running from the server in a secure manner, the application possibilities are almost limitless. When JSPs are used with Enterprise JavaBeans technology, e-commerce and database resources can be further enhanced to meet an enterprise's needs for web applications providing secure transactions in an open platform. J2EE technology as a whole makes it easy to develop, deploy and use web server applications instead of mingling with other technologies such as CGI and ASP. There are many tools for facilitating quick web software development and to easily convert existing server-side technologies to JSP and Servlets.
Many application server vendors are aggressively deploying JSP within their products. This results in developing robust e-commerce applications as JSP provides XML functionality and scalability. By providing a clear separation between content and coding, JSP solves many problems attached with existing server-side applications. Go to Home
JavaServer Pages (JSP) technology is the Java platform technology for delivering dynamic content to web clients in a portable, secure and well-defined way. The JavaServer Pages specification extends the Java Servlet API to provide web application developers with a robust framework for creating dynamic web content on the Server using HTML, and XML templates, and Java code, which is secure, fast, and independent of server platforms. JSP has been built on top of the Servlet API and utilizes Servlet semantics. JSP has become the preferred request handler and response mechanism. Although JSP technology is going to be a powerful successor to basic Servlets, they have an evolutionary relationship and can be used in a cooperative and complementary manner. Go to Home
Servlets are powerful and sometimes they are a bit cumbersome when it comes to generating complex HTML. Most servlets contain a little code that handles application logic and a lot more code that handles output formatting. This can make it difficult to separate and reuse portions of the code when a different output format is needed. For these reasons, web application developers turn towards JSP as their preferred servlet environment.
Evolution of Web Applications
Over the last few years, web server applications have evolved from static to dynamic applications. This evolution became necessary due to some deficiencies in earlier web site design. For example, to put more of business processes on the web, whether in business-to-consumer (B2C) or business-to-business (B2B) markets, conventional web site design technologies are not enough. The main issues, every developer faces when developing web applications, are:
1. Scalability - a successful site will have more users and as the number of users is increasing fastly, the web applications have to scale correspondingly. Go to Home
2. Integration of data and business logic - the web is just another way to conduct business, and so it should be able to use the same middle-tier and data-access code.
3. Manageability - web sites just keep getting bigger and we need some viable mechanism to manage the ever-increasing content and its interaction with business systems.
4. Personalization - adding a personal touch to the web page becomes an essential factor to keep our customer coming back again. Knowing their preferences, allowing them to configure the information they view, remembering their past transactions or frequent search keywords are all important in providing feedback and interaction from what is otherwise a fairly one-sided conversation.
Apart from these general needs for a business-oriented web site, the necessity for new technologies to create robust, dynamic and compact server-side web applications has been realized. The main characteristics of today's dynamic web server applications are as follows:
1. Serve HTML and XML, and stream data to the web client Go to Home
2. Separate presentation, logic and data
3. Interface to databases, other Java applications, CORBA, directory and mail services
4. Make use of application server middleware to provide transactional support.
5. Track client sessions
Now let us have a look on the role of Java technology and platform in this regard.
Java's Role for Server Applications
Sun Microsystems, having consulted many expert partners from other related IT industries, has come out with a number of open APIs for the technologies and services on server side. This collection of APIs is named as Java 2 Enterprise Edition (J2EE). The J2EE specification provides a platform for enterprise applications, with full API support for enterprise code and guarantees of portability between server implementations. Also it brings a clear division between code which deals with presentation, business logic and data. Go to Home
The J2EE specification meets the needs of web applications because it provides:
1. Rich interaction with a web server via servlets and built-in support for sessions available in both servlets and EJBs
2. The use of EJBs to mirror the user interaction with data by providing automatic session and transaction support to EJBs operating in the EJB server.
3. Entity EJBs to represent data as an object and seamless integration with the Java data access APIs
4. Flexible template-based output using JSP and XML
This family of APIs mean that the final web page can be generated from a user input request, which was processed by a servlet or JSP and a session EJB, which represents the user's session with the server, using data extracted from a database and put into an entity EJB. Thus, the Java revolution of portable code and open APIs is married with an evolution in existing products such as database, application, mail and web servers. The wide availability of products to run Java applications on the server has made this a fast-moving and very competitive market, but the essential compatibility through specifications, standard APIs and class libraries has held. This makes server-side Java a very exciting area. Go to Home
JavaServer Pages - An Overview
The JavaServer Pages 1.2 specification provides web developers with a framework to build applications containing dynamic web content such as HTML, DHTML, XHTML and XML. A JSP page is a text based document containing static HTML and dynamic actions which describe how to process a response to the client in a more powerful and flexible manner. Most of a JSP file is plain HTML but it also has, interspersed with it, special JSP tags.
There are many JSP tags such as:
1.JSP directive denoted by <%@, 2. scriplets indicated by <% ... %> tags and
directive includes the contents of the file sample.html in the response at that point.
To process a JSP file, we need a JSP engine that can be connected with a web server or can be accommodated inside a web server. Firstly when a web browser seeks a JSP file through an URL from the web server, the web server recognizes the .jsp file extension in the URL requested by the browser and understands that the requested resource is a JavaServer Page. Then the web server passes the request to the JSP engine. The JSP page is then translated into a Java class, which is then compiled into a servlet.
This translation and compilation phase occurs only when the JSP file is requested for the first time, or if it undergoes any changes to the extent of getting retranslated and recompiled. For each additional request of the JSP page thereafter, the request directly goes to the servlet byte code, which is already in memory. Thus when a request comes for a servlet, an init() method is called when the Servlet is first loaded into the virtual machine, to perform any global initialization that every request of the servlet will need. Then the individual requests are sent to a service() method, where the response is put together. The servlet creates a new thread to run service() method for each request. The request from the browser is converted into a Java object of type HttpServletRequest, which is passed to the Servlet along with an HttpServletResponse object that is used to send the response back to the browser. The servlet code performs the operations specified by the JSP elements in the .jsp file. Go to Home
The Components of JSPs
JSP syntax is almost similar to XML syntax. The following general rules are applicable to all JSP tags.
1. Tags have either a start tag with optional attributes, an optional body, and a matching end tag or they have an empty tag possibly with attributes.
2. Attribute values in the tag always appear quoted. The special strings ' and " can be used if quotes are a part of the attribute value itself.
Any whitespace within the body text of a document is not significant, but is preserved, which means that any whitespace in the JSP being translated is read and preserved during translation into a servlet.
The character \ can be used as an escape character in a tag, for instance, to use the % character, \% can be used.
JavaServer Pages are text files that combine standard HTML and new scripting tags. JSPs look like HTML, but they get compiled into Java servlets the first time they are invoked. The resulting servlet is a combination of HTML from the JSP file and embedded dynamic content specified by the new tags. Everything in a JSP page can be divided into two categories:
1. Elements that are processed on the server Go to Home
2. Template data or everything other than elements, that the engine processing the JSP engines.
Element data or that part of the JSP which is processed on the server, can be classified into the following categories:
1. Directives
2. Scripting elements
3. Standard actions
JSP directives serve as messages to the JSP container from the JSP. They are used to set global values such as class declaration, methods to be implemented, output content type, etc. They do not produce any output to the client. All directives have scope of the entire JSP file. That is, a directive affects the whole JSP file, and only that JSP file. Directives are characterized by the @ character within the tag and the general syntax is:
The three directives are page, include and taglib.
Scripting elements are used to include scripting code (Java code) within the JSP. They allow to declare variables and methods, include arbitrary scripting code and evaluate an expression. The three types of scripting element are: Declaration, Scriptlets and Expressions. Go to Home
A declaration is a block of Java code in a JSP that is used to define class-wide variables and methods in the generated class file. Declarations are initialized when the JSP page is initialized and have class scope. Anything defined in a declaration is available throughout the JSP, to other declarations, expressions or code.
A scriptlet consists of one or more valid Java statements. A scriptlet is a block of Java code that is executed at request-processing time. A scriptlet is enclosed between "<%" and "%>". What the scriptlet actually does depends on the code, and it can produce output into the output stream to the client. Multiple scriptlets are combined in the compiled class in the order in which they appear in the JSP. Scriptlets like any other Java code block or method, can modify objects inside them as a result of method invocations.
An expression is a shorthand notation for a scriptlet that outputs a value in the response stream back to the client. When the expression is evaluated, the result is converted to a string and displayed, An expression is enclosed within <%= and %> "<%=" and "%>". If any part of expression is an object, the conversion is done using the toString() method of the object.
Standard actions are specific tags that affect the runtime behavior of the JSP and affect the response sent back to the client. The JSP specification lists some standard action types to be provided by all containers, irrespective of the implementation. Standard actions provide page authors with some basic functionality to exploit; the vendor is free to provide other actions to enhance behavior. Go to Home
How JSP and JSP Container function
A JSP page is executed in a JSP container or a JSP engine, which is installed in a web server or in a application server. When a client asks for a JSP page the engine wraps up the request and delivers it to the JSP page along with a response object. The JSP page processes the request and modifies the response object to incorporate the communication with the client. The container or the engine, on getting the response, wraps up the responses from the JSP page and delivers it to the client. The underlying layer for a JSP is actually a servlet implementation. The abstractions of the request and response are the same as the ServletRequest and ServletResponse respectively. If the protocol used is HTTP, then the corresponding objects are HttpServletRequest and HttpServletResponse. Go to Home
The first time the engine intercepts a request for a JSP, it compiles this translation unit (the JSP page and other dependent files) into a class file that implements the servlet protocol. If the dependent files are other JSPs they are compiled into their own classes. The servlet class generated at the end of the translation process must extend a superclass that is either
1. specified by the JSP author through the use of the extends attribute in the page directive or
2. is a JSP container specific implementation class that implements javax.servlet.jsp.JspPage interface and provides some basic page specific behavior.
Since most JSP pages use HTTP, their implementation classes must actually implement the javax.servlet.jsp.HttpJspPage interface, which is a sub interface of javax.servlet.jsp.JspPage.
The javax.servlet.jsp.JspPage interface contains two methods:
1. public void jspInit() - This method is invoked when the JSP is initialized and the page authors are free to provide initialization of the JSP by implementing this method in their JSPs.
2. public void jspDestroy() - This method is invoked when the JSP is about to be destroyed by the container. Similar to above, page authors can provide their own implementation.
The javax.servlet.jsp.HttpJspPage interface contains one method:
public void _jspService(HttpServletRequest request, HttpServletResponse response) throws ServletException, IOException Go to Home
This method generated by the JSP container is invoked, every time a request comes to the JSP. The request is processed and the JSP generates appropriate response. This response is taken by the container and passed back to the client.
JSP Architecture
There are two basic ways of using the JSP technology. They are the client/server (page-centric) 2-tier approach and the N-tier approach (dispatcher).
The Page-Centric Approach
Applications built using a client-server (2-tier) approach consist of one or more application programs running on client machines and connecting to a server-based application to work. With the arrival of Servlets technology, 2-tier applications could also be developed using Java programming language. This model allows JSPs or Servlets direct access to some resource such as database or legacy application to service a client's request. The JSP page is where the incoming request is intercepted, processed and the response sent back to the client. JSPs differ from Servlets in this scenario by providing clean code, separating code from the content by placing data access in EJBs. Even though this model makes application development easier, it does not scale up well for a large number of simultaneous clients as it entails a significant amount of request processing to be performed and each request must establish or share a potentially scarce/expensive connection to the resource in question. Go to Home
Page-view - This basic architecture involves direct request invocations to a server page with embedded Java code, and markup tags which dynamically generate output for substitution within the HTML. This approach has been blessed a number of benefits. It is very straightforward and is a low-overhead approach from a developerment perspective. All the Java code may be embedded within the HTML, so changes are confined to a very limited area, reducing complexity drastically.
The big trade-off here is in the level of sophistication. As the scale of the system grows, some limitations begin to surface, such as bloating of business logic code in the page instead of factoring forward to a mediating Servlet or factoring back to a worker bean. It is a fact that utilizing a Servlet and helper beans helps to separate developer roles more cleanly and improves the potential for code reuse.
Page-view with bean - This pattern is used when the above architecture becomes too cluttered with business-related code and data access code. The Java code representing the business logic and simple data storage implementation in the previous model moves from the JSP to the JavaBean worker. This refactoring leaves a much cleaner JSP with limited Java code, which can be comfortably owned by an individual in a web-production role, since it encapsulates mostly markup tags.
The Dispatcher Approach
In this approach, a Servlet or JSP acts as a mediator or controller, delegating requests to JSP pages and JavaBeans. There are three different architectures. They are mediator-view, mediator-composite view and service to workers. Go to Home
In an N-tier application, the server side of the architecture is broken up into multiple tiers. In this case, the application is composed of multiple tiers, where the middle tier, the JSP, interacts with the back end resources via another object or EJBs component. The Enterprise JavaBeans server and the EJB provide managed access to resources, support transactions and access to underlying security mechanisms, thus addressing the resource sharing and performance issues of the 2-tier approach.
The first step in N-tiered application design should be identifying the correct objects and their interaction and the second step is identifying the JSPs or Servlets. These are divided into two categories.
Front end JSPs or Servlets manage application flow and business logic evaluation. They act as a point to intercept the HTTP requests coming from the users. They provide a single entry point to an application, simplifying security management and making application state easier to maintain.
Presentation JSPs or Servlets generate HTML or XML with their main purpose in life being presentation of dynamic content. They contain only presentation and rendering logic.
These categories resemble to the Modal-View design pattern, where the front-end components is the model and the presentation component the view. In this approach, JSPs are used to generate the presentation layer and either JSPs or Servlets to perform process-intensive tasks. The front-end component acts as the controller and is in charge of the request processing and the creation of any beans or objects used by the presentation JSP, as well as deciding, depending on the user's actions, which JSP to forward this request to. There is no processing logic within the presentation JSP itself and it simply responsible for retrieving any objects or beans that may have been previously created by the Servlet and extracting the dynamic content for insertion within static templates. Go to Home
Benefits of JSP
One of the main reasons why the JavaServer Pages technology has evolved into what it is today and it is still evolving is the overwhelming technical need to simplify application design by separating dynamic content from static template display data. Another benefit of utilizing JSP is that it allows to more cleanly separate the roles of web application/HTML designer from a software developer. The JSP technology is blessed with a number of exciting benefits, which are chronicled as follows:
1. The JSP technology is platform independent, in its dynamic web pages, its web servers, and its underlying server components. That is, JSP pages perform perfectly without any hassle on any platform, run on any web server, and web-enabled application server. The JSP pages can be accessed from any web server.
2. The JSP technology emphasizes the use of reusable components. These components can be combined or manipulated towards developing more purposeful components and page design. This definitely reduces development time apart from the At development time, JSPs are very different from Servlets, however, they are precompiled into Servlets at run time and executed by a JSP engine which is installed on a Web-enabled application server such as BEA WebLogic and IBM WebSphere. Go to Home
Conclusion
JSP and Servlets are gaining rapid acceptance as means to provide dynamic content on the Internet. With full access to the Java platform, running from the server in a secure manner, the application possibilities are almost limitless. When JSPs are used with Enterprise JavaBeans technology, e-commerce and database resources can be further enhanced to meet an enterprise's needs for web applications providing secure transactions in an open platform. J2EE technology as a whole makes it easy to develop, deploy and use web server applications instead of mingling with other technologies such as CGI and ASP. There are many tools for facilitating quick web software development and to easily convert existing server-side technologies to JSP and Servlets.
Many application server vendors are aggressively deploying JSP within their products. This results in developing robust e-commerce applications as JSP provides XML functionality and scalability. By providing a clear separation between content and coding, JSP solves many problems attached with existing server-side applications. Go to Home
Monday, October 6, 2008
::JAVA::
What is the difference between an Abstract class and Interface?
What is user defined exception?
What do you know about the garbage collector?
What is the difference between java and c++?
In an htm form I have a button which makes us to open another page in 15 seconds. How will you do that?
What is the difference between process and threads?
What is update method called?
Have you ever used HashTable and Directory?
What are statements in Java?
What is a JAR file?
What is JNI?
What is the base class for all swing components?
What is JFC?
What is the difference between AWT and Swing?
Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times ? Where three processes are started or three threads are started?
How does thread synchronization occur in a monitor?
Is there any tag in htm to upload and download files?
Why do you canvas?
How can you know about drivers and database information ?
What is serialization?
Can you load the server object dynamically? If so what are the 3 major steps involved in it?
What is the layout for toolbar?
What is the difference between Grid and Gridbaglayout?
How will you add panel to a frame?
Where are the card layouts used?
What is the corresponding layout for card in swing?
What is light weight component?
Can you run the product development on all operating systems?
What are the benefits if Swing over AWT?
How can two threads be made to communicate with each other?
What are the files generated after using IDL to java compiler?
What is the protocol used by server and client?
What is the functionability stubs and skeletons?
What is the mapping mechanism used by java to identify IDL language?
What is serializable interface?
What is the use of interface?
Why is java not fully objective oriented?
Why does java not support multiple inheritance?
What is the root class for all java classes?
What is polymorphism?
Suppose if we have a variable 'I' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What are virtual functions?
Write down how will you create a Binary tree?
What are the traverses in binary tree?
Write a program for recursive traverse?
What are session variable in servlets?
What is client server computing?
What is constructor and virtual function? Can we call a virtual function in a constructor?
Why do we use oops concepts? What is its advantage?
What is middleware? What is the functionality of web server?
Why is java not 100% pure oops?
When will you use an interface and abstract class?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
What is the main functionality of the remote reference layer?
How do you download stubs from Remote place?
I want to store more than 10 objects in a remote server? Which methodology will follow?
What is the main functionality of Prepared Statement?
What is meant by Static query and Dynamic query?
What are Normalization Rules? Define Normalization?
What is meant by Servelet? What are the parameters of service method?
What is meant by Session? Explain something about HTTP Session Class?
In a container there are 5 components. I want to display all the component names, how will you do that?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
Tell some latest versions in JAVA related areas?
What is meant by class loader? How many types are there? When will we use them?
What is meant by flickering?
What is meant by distributed application? Why are we using that in our application?
What is the functionality of the stub?
Explain about version control?
Explain 2-tier and 3-tier architecture?
What is the role of Web Server?
How can we do validation of the fields in a project?
What is meant by cookies? Explain the main features?
Why java is considered as platform independent?
What are the advantages of java over C++?
How java can be connected to a database?
What is thread?
What is difference between Process and Thread?
Does java support multiple inheritance? if not, what is the solution?
What are abstract classes?
What is an interface?
What is the difference abstract class and interface?
What are adapter classes?
what is meant wrapper classes?
What are JVM.JRE, J2EE, JNI?
What are swing components?
What do you mean by light weight and heavy weight components?
What is meant by function overloading and function overriding?
Does java support function overloading, pointers, structures, unions or linked lists?
What do you mean by multithreading?
What are byte codes?
What are streams?
What is user defined exception?
In an htm page form I have one button which makes us to open a new page in 15 seconds. How will you do that?
What is user defined exception?
What do you know about the garbage collector?
What is the difference between java and c++?
In an htm form I have a button which makes us to open another page in 15 seconds. How will you do that?
What is the difference between process and threads?
What is update method called?
Have you ever used HashTable and Directory?
What are statements in Java?
What is a JAR file?
What is JNI?
What is the base class for all swing components?
What is JFC?
What is the difference between AWT and Swing?
Considering notepad/IE or any other thing as process, What will happen if you start notepad or IE 3 times ? Where three processes are started or three threads are started?
How does thread synchronization occur in a monitor?
Is there any tag in htm to upload and download files?
Why do you canvas?
How can you know about drivers and database information ?
What is serialization?
Can you load the server object dynamically? If so what are the 3 major steps involved in it?
What is the layout for toolbar?
What is the difference between Grid and Gridbaglayout?
How will you add panel to a frame?
Where are the card layouts used?
What is the corresponding layout for card in swing?
What is light weight component?
Can you run the product development on all operating systems?
What are the benefits if Swing over AWT?
How can two threads be made to communicate with each other?
What are the files generated after using IDL to java compiler?
What is the protocol used by server and client?
What is the functionability stubs and skeletons?
What is the mapping mechanism used by java to identify IDL language?
What is serializable interface?
What is the use of interface?
Why is java not fully objective oriented?
Why does java not support multiple inheritance?
What is the root class for all java classes?
What is polymorphism?
Suppose if we have a variable 'I' in run method, if I can create one or more thread each thread will occupy a separate copy or same variable will be shared?
What are virtual functions?
Write down how will you create a Binary tree?
What are the traverses in binary tree?
Write a program for recursive traverse?
What are session variable in servlets?
What is client server computing?
What is constructor and virtual function? Can we call a virtual function in a constructor?
Why do we use oops concepts? What is its advantage?
What is middleware? What is the functionality of web server?
Why is java not 100% pure oops?
When will you use an interface and abstract class?
What is the exact difference in between Unicast and Multicast object? Where will it be used?
What is the main functionality of the remote reference layer?
How do you download stubs from Remote place?
I want to store more than 10 objects in a remote server? Which methodology will follow?
What is the main functionality of Prepared Statement?
What is meant by Static query and Dynamic query?
What are Normalization Rules? Define Normalization?
What is meant by Servelet? What are the parameters of service method?
What is meant by Session? Explain something about HTTP Session Class?
In a container there are 5 components. I want to display all the component names, how will you do that?
Why there are some null interface in JAVA? What does it mean? Give some null interface in JAVA?
Tell some latest versions in JAVA related areas?
What is meant by class loader? How many types are there? When will we use them?
What is meant by flickering?
What is meant by distributed application? Why are we using that in our application?
What is the functionality of the stub?
Explain about version control?
Explain 2-tier and 3-tier architecture?
What is the role of Web Server?
How can we do validation of the fields in a project?
What is meant by cookies? Explain the main features?
Why java is considered as platform independent?
What are the advantages of java over C++?
How java can be connected to a database?
What is thread?
What is difference between Process and Thread?
Does java support multiple inheritance? if not, what is the solution?
What are abstract classes?
What is an interface?
What is the difference abstract class and interface?
What are adapter classes?
what is meant wrapper classes?
What are JVM.JRE, J2EE, JNI?
What are swing components?
What do you mean by light weight and heavy weight components?
What is meant by function overloading and function overriding?
Does java support function overloading, pointers, structures, unions or linked lists?
What do you mean by multithreading?
What are byte codes?
What are streams?
What is user defined exception?
In an htm page form I have one button which makes us to open a new page in 15 seconds. How will you do that?
::Advanced Java Question::
What is RMI?
Explain about RMI Architecture?
What are Servelets?
What is the use of servlets?
Explain RMI Architecture?
How will you pass values from htm page to the servlet?
How do you load an image in a Servelet?
What is purpose of applet programming?
How will you communicate between two applets?
What IS the difference between Servelets and Applets?
How do you communicate in between Applets and Servlets?
What is the difference between applet and application?
What is the difference between CGI and Servlet?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify the same information whether it will connect to the database or it will be used previous information?
What are the difference between RMI and Servelets?
How will you call an Applet using Java Script Function?
How can you push data from an Applet to a Servlet?
What are 4 drivers available in JDBC? At what situation are four of the drivers used?
If you are truncated using JDBC , how can you that how much data is truncated?
How will you perform truncation using JDBC?
What is the latest version of JDBC? What are the new features added in that?
What is the difference between RMI registry and OS Agent?
To a server method, the client wants to send a value 20, with this value exceeds to 20 a message should be sent to the client . What will you do for achieving this?
How do you invoke a Servelet? What is the difference between doPost method and doGet method?
What is difference between the HTTP Servelet and Generic Servelet? Explain about their methods and parameters?
Can we use threads in Servelets?
Write a program on RMI and JDBC using Stored Procedure?
How do you swing an applet?
How will you pass parameters in RMI? Why do you serialize?
In RMI ,server object is first loaded into memory and then the stub reference is sent to the client. true or false?
Suppose server object not loaded into the memory and the client request for it. What will happen?
What is the web server used for running the servelets?
What is Servlet API used for connecting database?
What is bean? Where can it be used?
What is the difference between java class and bean?
Can we sent objects using Sockets?
What is the RMI and Socket?
What is CORBA?
Can you modify an object in corba?
What is RMI and what are the services in RMI?
What are the difference between RMI and CORBA?
How will you initialize an Applet?
What is the order of method invocation in an Applet?
What is ODBC and JDBC? How do you connect the Database?
What do you mean by Socket Programming?
What is difference between Generic Servlet and HTTP Servelet?
What you mean by COM and DCOM?
what is e-commerce?
Explain about RMI Architecture?
What are Servelets?
What is the use of servlets?
Explain RMI Architecture?
How will you pass values from htm page to the servlet?
How do you load an image in a Servelet?
What is purpose of applet programming?
How will you communicate between two applets?
What IS the difference between Servelets and Applets?
How do you communicate in between Applets and Servlets?
What is the difference between applet and application?
What is the difference between CGI and Servlet?
In the servlets, we are having a web page that is invoking servlets ,username and password? which is checks in database? Suppose the second page also if we want to verify the same information whether it will connect to the database or it will be used previous information?
What are the difference between RMI and Servelets?
How will you call an Applet using Java Script Function?
How can you push data from an Applet to a Servlet?
What are 4 drivers available in JDBC? At what situation are four of the drivers used?
If you are truncated using JDBC , how can you that how much data is truncated?
How will you perform truncation using JDBC?
What is the latest version of JDBC? What are the new features added in that?
What is the difference between RMI registry and OS Agent?
To a server method, the client wants to send a value 20, with this value exceeds to 20 a message should be sent to the client . What will you do for achieving this?
How do you invoke a Servelet? What is the difference between doPost method and doGet method?
What is difference between the HTTP Servelet and Generic Servelet? Explain about their methods and parameters?
Can we use threads in Servelets?
Write a program on RMI and JDBC using Stored Procedure?
How do you swing an applet?
How will you pass parameters in RMI? Why do you serialize?
In RMI ,server object is first loaded into memory and then the stub reference is sent to the client. true or false?
Suppose server object not loaded into the memory and the client request for it. What will happen?
What is the web server used for running the servelets?
What is Servlet API used for connecting database?
What is bean? Where can it be used?
What is the difference between java class and bean?
Can we sent objects using Sockets?
What is the RMI and Socket?
What is CORBA?
Can you modify an object in corba?
What is RMI and what are the services in RMI?
What are the difference between RMI and CORBA?
How will you initialize an Applet?
What is the order of method invocation in an Applet?
What is ODBC and JDBC? How do you connect the Database?
What do you mean by Socket Programming?
What is difference between Generic Servlet and HTTP Servelet?
What you mean by COM and DCOM?
what is e-commerce?
::Analyzing C++ And Java: Exploring The Major Differences::
Most of the developers previously have experience with an object-oriented programming language such as C++. While you make the changeover to Java, you will come upon lots of differences, in spite of some deep similarities. In this article, we will discuss the major differences that C++ programmers should know.
As a C++ programmer, you must the fundamental idea of object-oriented programming, and the syntax of Java undoubtedly appears familiar to you. This fact is logically strong since Java was derived from C++. Still, there are a storming number of differences between C++ and Java.
Such differences are planned to be major improvements, and if you recognize the differences you'll see why Java is such a helpful programming language. This article will make clear the important features that differentiate Java from C++, just like your C++ Tutor does.
Speed: The biggest potential stumbling block is speed: interpreted Java runs in the range of 20 times slower than C. Nothing forecloses the Java language from being compiled and there are just-in-time compilers coming out at this writing that offer important speed-ups. It is not implausible that full native compilers will appear for the more accepted platforms, but without those there are classes of issues that will be unsolvable with Java because of the speed issue.
Comments: Java has both kinds of comments like C++ does.
Class: Everything must be in a class. There is no global function or global data. If you require the equivalent of globals, make static technique and static data within a class. There are virtually no structs or enumerations or unions, only classes.
Functionality: All method definitions are defined in the body of the class. Therefore, in C++ it would appear like all the functions are inlined, but they're not (inlines are noted afterward).
Class definitions: Class definitions are roughly the same form in Java as in C++, but there's no closing semicolon. Basically there are no class declarations of the form class foo, only class definitions.
class aType {
void aMethod( ) { /* method body */ }
}
Scope resolution: There's no scope resolution operator :: in Java. Java utilizes the dot for everything, but can get missing with it since you can describe elements only within a class. Still the method definitions must always happen within a class, so there is no requirement for scope resolution there either. A single place where you'll observe the difference is in the calling of static methods: you say ClassName.methodName( );. Besides this, package names are recognized using the dot, and to carry out a kind of C++ #include you use the import keyword. For example: import java.awt.*;. (#include does not straight map to import, but it has a related feel to it).
Primitive Type: Java, like C++, has primitive types for efficient access. In Java, there are char, boolean, byte, short, int, long, float, and double. The entire primitive types have specified sizes that are machine autonomous for portability. (This must have drive on performance, varying with the hardware.) Type-checking and type requirements are much strict in Java. For example:
- Conditional expressions can be only boolean, not integral.
- The result of an expression like X + Y must be used; you can't just say "X + Y" for the side effect.
Characters: The char type uses the international 16-bit Unicode character set, so it can automatically represent most national characters.
Strings: Static quoted strings are automatically converted into String objects. There is no autonomous static character array string similar to there is in C and C++.
Right Shift: Java adds the triple right shift >>> to act as a "logical" right shift by inserting zeroes at the top end; the >> inserts the sign bit as it shifts (an "arithmetic" shift).
The requirement for the qualified IT professionals who have the knowledge of the Java script and platforms has certainly become a paramount to a lot of multinational companies. It is so because Java has become a very crucial aspect of the web enabled solutions. Also, it is a significant part of the office technology as well and thereby the Java professionals who have ample knowledge in the field can be of great advantage in terms of expansion and success of any company. This immediate and rising need of the corporate world and the growing Java jobs implies that the Java experts and the graduates alike have separate market that largely favors them for their knowledge on Java over a long term.
What is best is that the Java professionals can choose working in a specific area or further general positions which fit the professional needs they have. The most crucial goal for the Java professionals is to locate the right kind of jobs in Java so that they can use their abilities to the maximum possible. The jobs in EJB or the Enterprise Javabeans and the jobs in JSP or JavaServer Pages are also on the rise as a lot of companies are looking for professionals who are experts in the EJB and the JSP skills.
One of the easiest ways to find the best of the Java jobs is by attending the job fairs that are held every now and then. These fairs can be a great opportunity for the Java professionals who are seeking jobs as many multinational companies come at the job fairs to recruit worthy and talented professionals of Java. This biggest advantage is that the professionals who are looking for quality and high paying jobs can actually speak in person with the representatives of various leading companies and submit their resume in hand. At times, if their candidature is considered, they can get interviewed and perhaps recruited on the spot.
ava jobs can also be found online where there are various recruiting websites. All what needs to be done is to submit the updated resume with the concerned website. This way all the companies that find the candidature of the Java professional suitable contact him/ her for the job. Online search for jobs saves a lot of time of the individual. But as the demand is high, the candidature is also top notch in the IT sector.
As a C++ programmer, you must the fundamental idea of object-oriented programming, and the syntax of Java undoubtedly appears familiar to you. This fact is logically strong since Java was derived from C++. Still, there are a storming number of differences between C++ and Java.
Such differences are planned to be major improvements, and if you recognize the differences you'll see why Java is such a helpful programming language. This article will make clear the important features that differentiate Java from C++, just like your C++ Tutor does.
Speed: The biggest potential stumbling block is speed: interpreted Java runs in the range of 20 times slower than C. Nothing forecloses the Java language from being compiled and there are just-in-time compilers coming out at this writing that offer important speed-ups. It is not implausible that full native compilers will appear for the more accepted platforms, but without those there are classes of issues that will be unsolvable with Java because of the speed issue.
Comments: Java has both kinds of comments like C++ does.
Class: Everything must be in a class. There is no global function or global data. If you require the equivalent of globals, make static technique and static data within a class. There are virtually no structs or enumerations or unions, only classes.
Functionality: All method definitions are defined in the body of the class. Therefore, in C++ it would appear like all the functions are inlined, but they're not (inlines are noted afterward).
Class definitions: Class definitions are roughly the same form in Java as in C++, but there's no closing semicolon. Basically there are no class declarations of the form class foo, only class definitions.
class aType {
void aMethod( ) { /* method body */ }
}
Scope resolution: There's no scope resolution operator :: in Java. Java utilizes the dot for everything, but can get missing with it since you can describe elements only within a class. Still the method definitions must always happen within a class, so there is no requirement for scope resolution there either. A single place where you'll observe the difference is in the calling of static methods: you say ClassName.methodName( );. Besides this, package names are recognized using the dot, and to carry out a kind of C++ #include you use the import keyword. For example: import java.awt.*;. (#include does not straight map to import, but it has a related feel to it).
Primitive Type: Java, like C++, has primitive types for efficient access. In Java, there are char, boolean, byte, short, int, long, float, and double. The entire primitive types have specified sizes that are machine autonomous for portability. (This must have drive on performance, varying with the hardware.) Type-checking and type requirements are much strict in Java. For example:
- Conditional expressions can be only boolean, not integral.
- The result of an expression like X + Y must be used; you can't just say "X + Y" for the side effect.
Characters: The char type uses the international 16-bit Unicode character set, so it can automatically represent most national characters.
Strings: Static quoted strings are automatically converted into String objects. There is no autonomous static character array string similar to there is in C and C++.
Right Shift: Java adds the triple right shift >>> to act as a "logical" right shift by inserting zeroes at the top end; the >> inserts the sign bit as it shifts (an "arithmetic" shift).
Jobs For Java Professionals
The world is advancing at an immense speed in the contemporary times and thus there are various technological developments taking place each day. The IT sector is one arena where the burgeoning economy finds the best of its potential and aptitude employed. As the technology is the key element of almost every field of life, IT professionals that are well aware of technology and the latest software programs and computer languages are most sought.The requirement for the qualified IT professionals who have the knowledge of the Java script and platforms has certainly become a paramount to a lot of multinational companies. It is so because Java has become a very crucial aspect of the web enabled solutions. Also, it is a significant part of the office technology as well and thereby the Java professionals who have ample knowledge in the field can be of great advantage in terms of expansion and success of any company. This immediate and rising need of the corporate world and the growing Java jobs implies that the Java experts and the graduates alike have separate market that largely favors them for their knowledge on Java over a long term.
What is best is that the Java professionals can choose working in a specific area or further general positions which fit the professional needs they have. The most crucial goal for the Java professionals is to locate the right kind of jobs in Java so that they can use their abilities to the maximum possible. The jobs in EJB or the Enterprise Javabeans and the jobs in JSP or JavaServer Pages are also on the rise as a lot of companies are looking for professionals who are experts in the EJB and the JSP skills.
One of the easiest ways to find the best of the Java jobs is by attending the job fairs that are held every now and then. These fairs can be a great opportunity for the Java professionals who are seeking jobs as many multinational companies come at the job fairs to recruit worthy and talented professionals of Java. This biggest advantage is that the professionals who are looking for quality and high paying jobs can actually speak in person with the representatives of various leading companies and submit their resume in hand. At times, if their candidature is considered, they can get interviewed and perhaps recruited on the spot.
ava jobs can also be found online where there are various recruiting websites. All what needs to be done is to submit the updated resume with the concerned website. This way all the companies that find the candidature of the Java professional suitable contact him/ her for the job. Online search for jobs saves a lot of time of the individual. But as the demand is high, the candidature is also top notch in the IT sector.
Subscribe to:
Posts (Atom)