Sunday, December 12, 2010

Apllets HelloWorld Program.............

import java.applet.Applet;
import java.awt.*;
public class applet extends Applet{
public void paint(Graphics g){
g.drawString("Hello My Java Program",60,100);
}
}

connect to the database by using this code-oracle10g(XE)

import java.sql.*;
class ConnectionDB{
public static void main(String args[])throws Exception{
Class.forName("oracle.jdbc.driver.OracleDriver");
System.out.println("Driver Loaded");
Connection con=DriverManager.getConnection("jdbc:oracle:thin:@localhost:1521:XE","system","suman");
System.out.println("Connected");
con.close();
}
}

EmployeeServlet Program.................

package com.nareshit.servlets;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
public class EmployeeServlet extends HttpServlet{
Connection con;
PreparedStatement ps;
public void init(ServletConfig config) throws ServletException{
String driver=config.getInitParameter("driver");
String cs=config.getIntitParameter("url");
String usr=config.getInitParameter("user");
String pwd=config.getInitParameter("pwd");
 try
  {
  Class.forName(driver);
  con=DriverManager.getConnection(cs,usr,pwd);
  ps=con.PrepareStatement("Insert into employee values(?,?,?)");
  }
 catch(ClassNotFoundException e){
 e.printStackTrace();
 }
 catch(SQLException e)
 {
 e.PrintStackTrace();
 }
}//init()
public void destroy(){
try
  {
   if(ps!=null)
     ps.close();
   if(con!=null)
     con.close();
  }
catch(SQLException e)
  {
  e.PrintStackTrace();
  }
  }
public void doPost(HttpServletRequest request,HttpServletResponse response)
 throws ServletException ,IOException
 {
 String a=request.getParameter("empno");
 String b=request.getParameter("name");
 String c=request.getParameter("salary");
 int eno=Integer.parseInt(a);
 float salary=Float.parseFloat(c);
 try
 {
 ps.setInt(1,eno);
 ps.setString(2,name);
 ps.setFloat(3,salary);
 ps.executeUpdate();
 }
 catch(SQLException e)
 {
  e.PrintStackTrace();
 }
 response.sendRedirect("emp.html");
 }//doPost()
}//EmployyeeServlet class

Friday, December 3, 2010

Interiew on Capgemini November-2010

1.Diff. b/w Abstract and Interface?
2.what is the diff. b/w Jsp:forward tag and rd.forward(".jsp")?
3.what is the diff. b/w and <%@JspInclude%> ?
4.how can we handle the Exceptions in Jsp?
5.what are the weblogic[7001], tomcat[8080]
6.websphere[9080]  port no?
7.what is the Latest version of java?
8.what is Wrapper classes?
9.final,finally and finalized?
10.about on ArrayList?
11.Diff. b/w Hashtable and Hashmap?
12.Servlet Lifecycle?
13.tell me about on Custom tag files?
14.what are the Struts Action classes?
15.how to use the Cuistom tags in the Struts?
16.we don't know the which type of collection object will come at Runtime. then it will be take a method to one element and compare and sort that element how can we proceed?
Ans: ArrayList,Vectors,LinkedList,Set?

weblogic:
1.how the cluster will be done?
2.how the session Pool settings are done in weblogic?
3.how Replication done in  weblogic server?
4.how will you write replication code for weblogic in j2ee?
5.how it user enter 3 fields. if server goes down then what happend?
6.if 1000 users access the same page at a time in that case what will happend?
7.write struts validation through programmatic and xml validation?

CVS:
1.if one user modified content and another user also modified. first user modified if the second user save it what happend?
2.First change and submit and second user change what happend? First change and submit and second user not chagged then what happend. what file he get?
3.First will save, Second not saved and not chan ged. if the third user will access what happend?
4.one to many mapping hbm files? Eg: Employee  ------> projects
100
5.Jbuilder version?
6.In Eclipse how to PlugIn CVS or SVN?
Name:------
     ------
Attachments
-----------
-----------
   submit
here Btmp files are not allowed and Zip files are allowed? then how to get it errors will be raised?  

Interiew on IBM Technologies octobet-2010

1.what is the Diff. b/w Servlets and Jsp?
2.what are the implicit objects in jsp?
3.what is the diff. b/w Forward and Include?
4.what is the diff.b/w JspDirective[<%@JspInclude%>] tag and Jsp:include[] tag?
5.Diff. b/w Hashtable and Hashmap?
6.How many types of Ejb?
7.Which is the best performance of interface and abstract?
8.what is the JspLifecycle?

Wipro Interriew Question October-2010

1.overloading and overriding example?
2.Diff. b/w Hashtable and Hashmap?
3.Diff. b/w Vector and ArrayList?
4.Why we will give preference to ArrayList?
5.where we used in vector?
6.What is Thin? Diff. b/w Thin and Thick?
7.How the JspSession Management will done program?
8.How the JDBCConnection will be Produced Program?
9.If it possibe multiple constructors in the same class means different parameters.
10.How can we call with in the same class? Ans: this

11.How the Jsp Form Fields will be submitted.
12.if any error will occur the data fields will be lost
or any where stored? Ans: Bean Or Session
13.Where the field validation will be done?
Ans: Form Bean
14.what is DesignPattern? what are the types of design
patterns?
15.what is the SingleTon DesignPattern?

Thursday, December 2, 2010

GenericServlet Full structure sample Example

package com.nareshit.servlets;
import javax.servlet.*;
public class Helloworld implements servlet
{
public Helloworld()
{
System.out.println("Constructor");
}
public void init(ServletConfig config)
{
System.out.println("Init method");
}
public void service(ServletRequest r,ServletResponse res)
{

System.out.println("Hello world");   
}
public void destroy()
{
System.out.println("destroy method");
}
public string getServletInfo()
{
return "Hai";
}
public servletConfig getServletConfig()
{
return null;
}
}   

Wednesday, December 1, 2010

XML file for Persistence in EJB3


 
  myds
 

Servlet Program for Inserting Record into Employee Table

package com.nareshit.servlets;
import javax.servlet.*;
import javax.servlet.http.*;
import java.io.*;
import java.sql.*;
public class EmployeeServlet extends HttpServlet{
Connection con;
PreparedStatement ps;
public void init(ServletConfig config) throws ServletException{
String driver=config.getInitParameter("driver");
String cs=config.getIntitParameter("url");
String usr=config.getInitParameter("user");
String pwd=config.getInitParameter("pwd");
 try
  {
  Class.forName(driver);
  con=DriverManager.getConnection(cs,usr,pwd);
  ps=con.PrepareStatement("Insert into employee values(?,?,?)");
  }
 catch(ClassNotFoundException e){
 e.printStackTrace();
 }
 catch(SQLException e)
 {
 e.PrintStackTrace();
 }
}//init()
public void destroy(){
try
  {
   if(ps!=null)
     ps.close();
   if(con!=null)
     con.close();
  }
catch(SQLException e)
  {
  e.PrintStackTrace();
  }
  }
public void doPost(HttpServletRequest request,HttpServletResponse response)
 throws ServletException ,IOException
 {
 String a=request.getParameter("empno");
 String b=request.getParameter("name");
 String c=request.getParameter("salary");
 int eno=Integer.parseInt(a);
 float salary=Float.parseFloat(c);
 try
 {
 ps.setInt(1,eno);
 ps.setString(2,name);
 ps.setFloat(3,salary);
 ps.executeUpdate();
 }
 catch(SQLException e)
 {
  e.PrintStackTrace();
 }
 response.sendRedirect("emp.html");
 }//doPost()
}//EmployyeeServlet class 

Sample Resume for freshers in JAVA

RESUME


G.xxxxxx
H.No:xxxx,
Sri kodandaRamNagar,
xxxxxxxr,
Hyderabad.500060
Andhra Pradesh.INDIA
Phone: xxxxxxxx                                                                     Email: xxxxxxx@yahoo.com
 



Objective

To seek a challenging job where I can enhance my skills, develop my creativity and put my maximum efforts on the job assigned and take an active part in company development.


Working Experience                    

Working as a Software Engineer at Sunsilica Solutions Pvt. Ltd., Jubilee Hills, Hyderabad. from Jan 2005 to till date


Technical Skills

Programming Languages
C, C++, Java
Databases
Oracle, MySql
Operating Systems
Windows 9X/ 2000/ XP
Web Technologies
HTML, XML, JSP, JAVA SCRIPT, SERVLETS, JDBC
Web Server
Tomcat


Academics­­­­­­­­­­­­­­­­­

Course
College
University
Year  of           Study
Percentage
M. Sc
(Information Systems)
RGR Siddhanthi PG College for women.
xxxx University
2002-2004
76.79 %
BCA
Scholars Degree College.
xxxx University
1999-2002
71.36 %


Training

·         Undergone Training in J2EE from Deccan Soft.
·         Undergone Training in Core Java, Advanced Java from NETGSC.

Career Project


Project: 1
Title
CRM
Company
Sunsilica Solutions Pvt. Ltd., Jubilee Hills, Hyderabad.
Duration
On going from February 2006
Technologies Used
Front End - Java ( JSP / Servlets) Using Tomcat WebServer
Back End - MySql
Project Description
Any company's key for long-term success is how well it manages the process of attracting customers then converting, and retaining them. The three main areas that CRM systems focus on are sales force automation, account management, Reports & Forecasting.



Project: 2
Title
BIZYARD
Company
Sunsilica Solutions Pvt. Ltd., Jubilee Hills, Hyderabad.
Duration
Jan 2005 to Jan 2006
Technologies Used
Front End - Java ( JSP / Servlets) Using Tomcat WebServer
Back End - MySql
Project Description
BIZYARD is a portal that facilitates the selling and buying of various kinds of commercial properties to different customers. The website lists different kinds of properties with the required information in different areas of the United States.


Personal Details


Father’s Name
xxxxx
Mother’s Name
xxxx
Nationality
INDIAN
Date of Birth
xxxxxxxxxxx
Languages known
English, Telugu, Hindi


Sample Resume For experience in J2EE

                  
xxxx                                                                        E-mail: xxxx@gmail.com
Mobile: xxxxxxxxx


Professional Summary:

Ø       Having 3+ years of solid IT experience Involved in developing and maintenance of Software applications using Java, J2ee.

Ø       Extensive experience in Servlets, JSP, Struts.

Ø       Experience in using Apache Struts and Spring Frameworks.

Ø       Working experience on Tomcat, WebLogic.

Ø       Knowledge of Java Beans, Enterprise Java Beans.

Ø       Good communication and interpersonal skills.

Ø       Knowledge in developing customized Light weight persistent classes and ORM Framework (HIBERNATE).

Ø       Strong trouble shooting and problem solving skills.

Ø       Having much knowledge in OOPS concepts.

Ø       Having Database Programming skills SQL, PL/SQL.

Ø       Ability to learn new technologies with minimal time period and Team Player with excellent communication skills.

Career Profile:

Ø       Working as a Software Engineer in “Cigniti Software Services Ltd, Hyderabadfrom March 2008 to Till Date.

Ø       Worked as a Software Engineer in “Logic Bytes Private Ltd, Hyderabadfrom August 2006 to Feb 2008.

Professional Qualification:

Ø       BSC (Batchelor of Science) from xxxxx University.
Ø       Intermediate from Board of Intermediate Education, Hyderabad.

  Area of Acquaintance:
     Languages                           : Java and j2EE Technologies
     Web Technologies                 : AJAX, Html
     RDBMS                                : Oracle, Mysql
     Database Connectivity           : JDBC and Hibernate
     Frameworks                         : Struts, Springs
     IDEs                                   : Eclipse, MyEclipse
     Application Server                 : Weblogic Server
     Web Server                         : Tomcat
     Operating Systems                : Windows XP/2000, WindowsNT
     Configuration Tools               : SVN
                 

PROJECTS DETAILS:

Current Project: Project #1

Title                            :           Kanlaw Application
Client                          :          Kanlaw
Environment             :           Struts, Servlets, JSP, JDBC, Tomcat6.0 and Mysql
Duration                :           April 2009 to till date

Description:
Kanlaw will be having two different views one is Admin view and another one is Attorney view. In Admin view will be having H1-Case, H2-Case and Company. Admin will be adding the new user later on processing this user will be moving to from Admin to Attorney.
          Attorney will be processing the user that got to him from Admin and if he accepts/rejects this   will be moved back to Admin.

Responsibilities:
Ø       Involved in coding to implement search functionality
Ø       Responsible for implementation of search by type, search by First Name, search by Last Name Modules and Search by Status.
Ø       Extensively used struts Action and Form Classes (Action, Dispatch Action) which will validate the input forms (Form Beans populated by JSP pages) based on the business logic.


Project #2:

Title                            :           V-Store         
Client                          :           V-Store, Tanzania.
Environment             :           Struts, Servlets, JSP, JDBC, Tomcat6.0 and Mysql
Duration                :           March 2008 to Feb 2009

Description:  
V-Store is a Tanzania based Company which import goods from U.S and distributes the items under various categories like Laptops, E-Commerce, Tool Kits, Electrical Accessories, DIY Tools, Satellite Cable accessories and Leather Goods. Through this site, the client can take orders against various products from the buyers in quick time.
Store is a web base application, which maintains the information of the customer by registering in this site. The customer can contact the operator by mail or by phone. Customer can order the products by posting the URL, documents to mysql database, and delivery is provided to the residence.

Responsibilities:
Ø       Involved in Developing User module, which includes User registration, viewing and updating User profile.
Ø       Involved in coding to implement search functionality
Ø       Responsible for implementation of search by type and search by Name.
Ø       Done client-side validations using JavaScript

Project #3

Title                            :           Micro Financer
Client                          :           B&T Motor’s, Sylacauga
Environment             :           Servlets, JSP, JDBC, Tomcat6.0 and Oracle
Duration                     :           June 2007 to Feb 2008

Description:             
          Micro Financer is an integrated Software system exclusively designed and developed for Management of Information and Financial Accounting for Micro Finance Credit Societies. It facilitate to the bank employees and the account holders through different modules like Customer,Administration,Transaction Services, Bill payment Services, Maintenance Services the banking industry explore like never before.
          The Micro Financer deals with maintaining of information with regard to all members and online transactions will be taking place between banker & account holder where in the account holder will be availing various utilities through this solution which is the need of the hour in the banking industry for global revolution.

Responsibilities:
Ø       Developed GUI using Struts-html.
Ø       Developed java beans to perform business logic
Ø       Developed form beans.
Ø       Involved in developing Dao’s and jsp’s for Auction Systems.


Project#4 

Title                            :           3x3i System
Client                          :           Logic Bytes Private limited -Hyderabad
Environment             :           Servlets, JSP, JDBC, Tomcat and Oracle
Duration                     :           December 2006 to May 2007

Description:
          3x3i System is specially designed for the top management  to  gauze  the  status  of  the  projects  at  any  given  time at one glance. 3x3i System creates information repository for the development team as well as the management.
          3x3i System has inbuilt features to act as a tool to imbibe all aspects of Project Management System, Total Quality Management System and Management Information Systems, hence the name 3x3i System. All Associates, Team/Project Leaders, Project Manager and top Management are the users of this system.      
         
Responsibilities:
Ø       Involved in Admin module, which includes Add Employee, viewing Employee and Deleting Employee.
Ø       Involved in creating admin by super admin
Ø       Done client-side validations using JavaScript.



Sample Resume For experience in J2EE

             
  xxxx                                                                      E-mail: xxxxx@gmail.com
Mobile: xxxxxxxxxx


Professional Summary:

Ø       Having 3+ years of solid IT experience Involved in developing and maintenance of Software applications using Java, J2ee.

Ø       Extensive experience in Servlets, JSP, Struts.

Ø       Experience in using Apache Struts Framework.

Ø       Working experience on Tomcat.

Ø       Knowledge of Java Beans.

Ø       Good communication and interpersonal skills.

Ø       Knowledge in developing customized Light weight persistent classes and ORM Sowftware (HIBERNATE).
Ø       Knowledge on Spring Framework

Ø       Strong trouble shooting and problem solving skills.

Ø       Having much knowledge in OOPS concepts.

Ø       Having Database Programming skills SQL, PL/SQL.

Ø       Ability to learn new technologies with minimal time period and Team Player with excellent communication skills.

Career Profile:

Ø       Working as a Software Engineer in “Cigniti Software Services Ltd, Hyderabadfrom August 2006 to Till Date.


Professional Qualification:

Ø       BSC (Bachelor of Science) from xxxxxxxxx University.
Ø       Intermediate from Board of Intermediate Education, Hyderabad.

  Area of Acquaintance:
     Languages                           : Java and j2EE Technologies and Xml
     Web Technologies                 : AJAX, Html
     RDBMS                                : Oracle, Mysql
     Database Connectivity           : JDBC and Hibernate
     Frameworks                         : Struts, springs
     IDEs                                   : Eclipse, My Eclipse and Log4J.
     Application Server                 : Weblogic Server
     Web Server                         : Tomcat
     Operating Systems                : Windows XP/2000, WindowsNT
     Configuration Tools               : SVN
                 

PROJECTS DETAILS:

Current Project: Project #1

Title                            :           Kanlaw Application
Client                          :          Kanlaw,US
Environment             :           Struts, Servlets, JSP, JDBC,Xml, Tomcat and Mysql
Duration                :           April 2009 to till date

Description:
Kanlaw will be having two different views one is Admin view and another one is Attorney view. In Admin view will be having H1-Case, H2-Case and Company. Admin will be adding the new user later on processing this user will be moving to from Admin to Attorney.
          Attorney will be processing the user that got to him from Admin and if he accepts/rejects this   will be moved back to Admin.

Responsibilities:
Ø       Communication directly with client
Ø      Used Struts framework to implement the MVC design pattern in the application
Ø       Created Tile definitions, struts-config files and resource bundles for Profile and new customer modules using Struts framework

Ø       Involved in coding to implement search functionality

Ø       Responsible for implementation of search by type, search by First Name, search by Last Name Modules and Search by Status.

Ø       Extensively used struts Action and Form Classes (Action, Dispatch Action) which will validate the input forms (Form Beans populated by JSP pages) based on the business logic.

Ø       Developed web tier using Struts tag libraries, HTML, XML, JSP, Servlets

Ø       Integrated log4j,report generation  this application

Ø       Used All  Queries write into Properties file and access throughout application

Ø      Involved developing views and controllers using StrutsMVC

Ø       Used SVN for software configuration management and version control








Project #2:

Title                            :           V-Store         
Client                          :           V-Store, Tanzania.
Environment             :           Struts, Hibernate, Ajax, Servlets, JSP, JDBC, Tomcat and Mysql
Duration                :           January 2008 to Feb 2009

Description:  
V-Store is a Tanzania based Company which import goods from U.S and distributes the items under various categories like Laptops, E-Commerce, Tool Kits, Electrical Accessories, DIY Tools, Satellite Cable accessories and Leather Goods. Through this site, the client can take orders against various products from the buyers in quick time.
Store is a web base application, which maintains the information of the customer by registering in this site. The customer can contact the operator by mail or by phone. Customer can order the products by posting the URL, documents to mysql database, and delivery is provided to the residence.

Responsibilities:
Ø       The application was designed on Struts and Hibernate Framework to make use of its MVC pattern

Ø       Created Tile definitions, struts-config files and resource bundles for Profile and new customer modules using Struts framework

Ø      Extensively used struts Action and Form Classes (Action, DispatchAction) which will validate the input forms (Form Beans populated by JSP pages) based on the business logic.

Ø       Used design patterns like MVC, DAO, DTO and Singleton Pattern

Ø       Involved in Developing User module, which includes User registration, viewing and updating User profile.

Ø       Involved in coding to implement search functionality

Ø       Responsible for implementation of search by type and search by Name.

Ø       Done validations using JavaScript

Ø       Developed web tier using Struts tag libraries, HTML, XML, JSP, Servlets.













Project#3

Title                            :           3x3i System
Client                          :           Logic Bytes Private limited -Hyderabad
Environment             :           Servlets, JSP, JDBC, Tomcat and Oracle
Duration                     :           December 2006 to September 2007

Description:
          3x3i System is specially designed for the top management  to  gauze  the  status  of  the  projects  at  any  given  time at one glance. 3x3i System creates information repository for the development team as well as the management.
          3x3i System has inbuilt features to act as a tool to imbibe all aspects of Project Management System, Total Quality Management System and Management Information Systems, hence the name 3x3i System. All Associates, Team/Project Leaders, Project Manager and top Management are the users of this system.      
         
Responsibilities:
Ø       Involved in Admin module, which includes Add Employee, viewing Employee and Deleting Employee.

Ø       Involved in creating admin by super admin

Ø       Done client-side validations using JavaScript

Ø       Involved in Developed the Change Request  Form

Ø       Involved  in Developed the Customer Compliant Register Form 

Ø       Involved in Developed the MOM Form

Ø       Used SVN for software configuration management and version control

Ø       Used All  Queries write into Properties file and access throughout application