Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

triangle  February 12, 2013 at 10:53 PM
how to draw triangle numbers with stars in html with the help of javascript ... View Questions/Answers

id  February 12, 2013 at 10:50 PM
how to find date of birth and gender in id in html with the help of javascript ... View Questions/Answers

dynamic drop down list  February 12, 2013 at 8:20 PM
I want to create 2 drop down list, where it takes value from database and the two list are dependent..means if I select a particular value from one the other list is developed accordingly..depending on the value chosen from the previous. want code in javascript and jsp, Can you help me with thi... View Questions/Answers

Advertisement

ID number program  February 12, 2013 at 6:24 PM
hi can anyone help me with the following program. a program that can determine a person,s date of birth, age, gender and citizenship by just entering the id number. thanks in advance ... View Questions/Answers

upload file and insert other details to database using a single form  February 12, 2013 at 5:58 PM
hi.. I have problem with uploading a file and insert other user datas together which I retrieved from another jsp/html page. Here i was able to upload file but my other details seem to be null. ... View Questions/Answers

Label n Dropdown Issue  February 12, 2013 at 4:52 PM
Hi guys, Some how Iam able to receive the data for labels, dropdowns. I created one array with the size of label, and statred for loop, inside this I created one more array of type above created array of size of dropdowns. I was not able to display the dropdowns with... View Questions/Answers

java referer url  February 12, 2013 at 4:12 PM
How to get the referer url in Java? Thanks ... View Questions/Answers

Triangle pgm  February 12, 2013 at 3:15 PM
how to write code fa this??? 1 222 33333 4444444 55555555 666666666 ... View Questions/Answers

HOW TO FIND OUT GPS COORDINATES WITHOUT USING ONLINE DATABASE OR OTHERTHING ON MOBILE  February 12, 2013 at 11:59 AM
Hello Sir,, Good Morning Actually i have been assigned a task in my college to create a new mobile application and in that i've to reterive gps coordinates(tude and lontitude and others related to it) only which i have to display on any java supported d... View Questions/Answers

HOW TO FIND OUT GPS COORDINATES WITHOUT USING ONLINE DATABASE OR OTHERTHING ON MOBILE  February 12, 2013 at 11:59 AM
Hello Sir,, Good Morning Actually i have been assigned a task in my college to create a new mobile application and in that i've to reterive gps coordinates(tude and lontitude and others related to it) only which i have to display on any java supported d... View Questions/Answers

HOW TO FIND OUT GPS COORDINATES WITHOUT USING ONLINE DATABASE OR OTHERTHING ON MOBILE  February 12, 2013 at 11:59 AM
Hello Sir,, Good Morning Actually i have been assigned a task in my college to create a new mobile application and in that i've to reterive gps coordinates(tude and lontitude and others related to it) only which i have to display on any java supported d... View Questions/Answers

can pass list of n values in session and get in jsp  February 12, 2013 at 11:44 AM
In dao: am geting username,companyname,usertype and set to userBean and add to arraylist In servlet: list=userBean.selectUserBo(); HttpSession session = request.getSession(true); session.setAttribute("currentUser",list); In jsp: <% if(session.getAttribut... View Questions/Answers

can pass list of n values in session and get in jsp  February 12, 2013 at 11:44 AM
In dao: am geting username,companyname,usertype and set to userBean and add to arraylist In servlet: list=userBean.selectUserBo(); HttpSession session = request.getSession(true); session.setAttribute("currentUser",list); In jsp: <% if(session.getAttribut... View Questions/Answers

How to retrieve array values from html form to jsp?  February 12, 2013 at 10:33 AM
Hi! I am developing an dynamic user interface. I hv developed html forms and i wat to convert it into jsp. Means i just want to retrieve values from html form containing array to jsp page and store them in the session variable. So plz any1 can send me sample code for how to retrive array values f... View Questions/Answers

Roll Dice  February 12, 2013 at 5:44 AM
Create a program that rolls one dice, count the # times each number occurs on the dice when rolled. 1000 rolls, create a table of output for: # rolled, # times rolled, and % times rolled ... View Questions/Answers

java question  February 11, 2013 at 9:37 PM
Implement a class called ShortAddress that has the following attributes: firstName, secondName, and phoneNumber. Now implement a class called FullAddress that inherits the above attributes while adding the attributes (int) houseNumber (simply 1, 2, ‚?¶ etc. - i.e. no 1a or 3b's ... View Questions/Answers

retrieve the data to text fields from database on clicking the value of combo box  February 11, 2013 at 5:14 PM
retrieve the data to text fields from database on clicking the value of combo box . I am not getting it plz help me out . ... View Questions/Answers

Cube Root  February 11, 2013 at 4:16 PM
Hi, Can one one please tell me how to find the cube root of any number without using any inbuilt function?? Regards: Akash ... View Questions/Answers

SQL  February 11, 2013 at 4:02 PM
There are two applications once has transaction management and another has non-transaction management the first application has committed the data and the same has to be updated in the second application But the second application failed to update the data. How will you sync the data between thes... View Questions/Answers

JSP Project  February 11, 2013 at 4:02 PM
Register.html <html> <body > <form action="process.jsp" method=post> <center> <table cellpadding=2 cellspacing=1 border="1" bgcolor="lightblue" width="900" height="500"> <th bgcolor="lightblue" colspan=2> <font size=5&... View Questions/Answers

CORE JAVA  February 11, 2013 at 4:00 PM
Which collection is more feasible to store unique objects? Which collection is better to store objects where insertion order should be preserved? Can we use Enumeration for displaying list objects? ... View Questions/Answers

WEB SERVICES  February 11, 2013 at 3:58 PM
What is the use of WSDL file in web-service? What is UDDI Registry? How will convert EJB bean into a Web-service in WebSphere? ... View Questions/Answers

STRUTS  February 11, 2013 at 3:57 PM
1)Have you used struts tag libraries in your application? 2)What are the various types of tag libraries in struts? Elaborate each of them? 3)How can you implement custom tag libraries in your application? ... View Questions/Answers

Hibernate  February 11, 2013 at 3:53 PM
How do you handle parent - child tables relationships in hibernate? How do you handle Detach state in hibernate? ... View Questions/Answers

DESIGN PATTERNS  February 11, 2013 at 3:46 PM
How many instances will be created for single ton pattern in Cluster Environment? ... View Questions/Answers

SQL  February 11, 2013 at 3:43 PM
What is the purpose of the triggers? How you are going to debug the procedure? ... View Questions/Answers

CORE JAVA  February 11, 2013 at 3:38 PM
The advantage of an abstract class is that you can (partially) implement the class. The advantage of an interface is that you can implement multiple interfaces, whereas you can not extend multiple abstract classes. Or Choosing interfaces and abstract classes is not an either/or pr... View Questions/Answers

HIBERNATE  February 11, 2013 at 3:36 PM
What is mean by cache? How many types are there give me one example? ... View Questions/Answers

SQL  February 11, 2013 at 3:35 PM
1)What is self Join and when we have to use, give me the scenario? 2)Why we have to use Indexes? ... View Questions/Answers

JSP  February 11, 2013 at 3:12 PM
Consider that we need to have a text, combo, radio & checkbox in JSP page and the page data's are retrieved from ... View Questions/Answers

SQL  February 11, 2013 at 3:10 PM
1)How to Store 1000 records in Oracle object. 2)Write a query for calculate highest, 3rd Highest & 10th highest salary from emp teble. 3)What is Sequence. 4)How to use rowid in Sql. 5)What is Views. 6)How to write subquery. ... View Questions/Answers

fill combobox at runtime jsp  February 11, 2013 at 12:10 PM
i have 1 combobox in jsp which is filled with value from sql db on load of form <% Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); Connection cn = DriverManager.getConnection("jdbc:odbc:mydsn");; Statement s = cn.createStatement();... View Questions/Answers

do the following  February 10, 2013 at 11:11 PM
write a program to enter the string and do the following 1- count totle number of vowel 2- replace vowel 3- delete the charactor from given value 4- riverce the string 5- convert second word in upercase 6- convert third word in lowercase ... View Questions/Answers

Cheking birthday excel sheet everyday and Sending Automated MAIL to birthday boy on his birthday  February 10, 2013 at 10:36 PM
hi all I am toatally new to java programming can anyone help me out in the procedure for sending automated mail to the birthday boy on his b'day from list of all b'day people. steps : 1) It should search for the birthday date from the excel which is already created and if... View Questions/Answers

Application scope variable inside ServletConfigListener  February 10, 2013 at 8:39 PM
Hi, The below code on your website states how to run a code at timed intervals. Suppose I want to set a application scope variable inside the run method in this code. How do I do It. I have tried all possibilities and it doesnt work. Please help me out. I need to set a class as a ... View Questions/Answers

Square Root  February 10, 2013 at 6:26 PM
Hi, can any one please tell me the code to findout the square root of a given number with using built in function??? Thanks a lot in advance!! Regards: Akash ... View Questions/Answers

why my keyevent not function ? - java swing -  February 10, 2013 at 5:38 PM
import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class Calculator extends J... View Questions/Answers

why my keyevent not function ? - java swing -  February 10, 2013 at 5:38 PM
import java.awt.*; import java.awt.event.*; import javax.swing.*; import java.awt.event.KeyEvent; import java.awt.event.KeyListener; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; public class Calculator extends J... View Questions/Answers

sorting  February 10, 2013 at 5:17 PM
write a program to arrange sorting in rows,column and diagonal ... View Questions/Answers

sorting  February 10, 2013 at 4:49 PM
write to a program to arrange the sorting in rows, column and digonal ... View Questions/Answers

executing multiple sql statements on the single button click...  February 10, 2013 at 12:56 AM
how can i frame a code on the click of a button to insert data into a table as well as to retrieve records from the same table in another form?? ... View Questions/Answers

executing multiple sql statements on the single button click...  February 10, 2013 at 12:54 AM
how can i frame a code on the click of a button to insert data into a table as well as to retrieve records from the same table in another form?? ... View Questions/Answers

How to execute my query fast..When A date filter is there in a query it takes more time for execution.?  February 9, 2013 at 3:01 PM
When A date filter is there in a query it runs for 10 mins with 4000 records.. when the date filter is commented it runs in 30 seconds with 5000 records... what is the problem ... how to execute my query fast... please help... ... View Questions/Answers

Garbage Collector  February 9, 2013 at 12:21 PM
Hi, Can any one please tell me what are the types of garbage collector ?? Regards: Akash ... View Questions/Answers

Client Interview  February 9, 2013 at 9:46 AM
Hi, I am kumar i am having client round in polaries client is a BANK. how to face client interview. what are the expected questions from CITI. ... View Questions/Answers

Generate Employee ID (SCS-0001,SCS-0002......)  February 9, 2013 at 12:09 AM
Hello everyone i am beginner in java and i am working on my major project I want to generate bill number and employee number like SCS-0001 and so on and bill number like SCS/'date''month'/001............ ie "SCS/0802/001"........ and so on in jsp or servlet and database is mysql... .. Pl... View Questions/Answers

How to Read a file line by line using BufferedReader?  February 9, 2013 at 12:08 AM
Hello Java developers. I have studied java very well in last few months. A work is assigned to me in my company. Here I have many big text files. I have to read these files efficiently and the extract the business data and insert into database. My problem is to find the best way t... View Questions/Answers

what is the default buffer size for bufferedreader  February 8, 2013 at 11:58 PM
Hi, I am writing a program in Java for reading the big text file. I want to know what is the default buffer size for bufferedreader? Is there any example of reading the big text file efficiently? Thanks ... View Questions/Answers

Why bufferedreader is used in java?  February 8, 2013 at 11:49 PM
Hi, What is the use of BufferedReader class in Java? why bufferedreader is used in java? It will be great if anyone can give me the example code of BufferedReader class in java. Thanks ... View Questions/Answers

java  February 8, 2013 at 10:45 PM
what are different command controller classes and why we use this in spring webmvc ... View Questions/Answers

datetime picker is not opening  February 8, 2013 at 5:18 PM
Hi I have a java servlet code in this date time picker is not opening. The same opens in JSP code. My code is: **function.js** <script language="javascript" type="text/javascript" src="datetimepicker.js"> //Date Time Picker script- by TengYong Ng of http... View Questions/Answers

how to format date from yyyy-mm-dd to dd-mm-yyyy  February 8, 2013 at 10:55 AM
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /&... View Questions/Answers

My name, java project  February 8, 2013 at 12:37 AM
Write a class that displays your first name vertically down the screen ‚?? where each letter uses up to 5 rows by 5 columns of a character input by you with a blank line between each letter. Note: each letter being displayed should have the lines of code needed to display that letter... View Questions/Answers

My name, java project  February 8, 2013 at 12:37 AM
Write a class that displays your first name vertically down the screen ‚?? where each letter uses up to 5 rows by 5 columns of a character input by you with a blank line between each letter. Note: each letter being displayed should have the lines of code needed to display that letter... View Questions/Answers

Help...  February 8, 2013 at 12:32 AM
Write a class that displays your first name vertically down the screen ‚?? where each letter uses up to 5 rows by 5 columns of a character input by you with a blank line between each letter. ... View Questions/Answers

JAVA CODE  February 7, 2013 at 8:05 PM
JAVA SOURCE CODE TO BLOCK A PARTICULAR WEB SITES(SOCIAL WEB SITE). ... View Questions/Answers

java  February 7, 2013 at 4:34 PM
what is java reflection. ... View Questions/Answers

java  February 7, 2013 at 4:33 PM
what is syncronisation ... View Questions/Answers

login page using jsp servlrt with mysql database?  February 7, 2013 at 3:49 PM
Description: example:total users are 3.each use have username and password save in mysql database table login. After successfully login user1 see only index page,if user2 login then he see only visiter page and so on. please gine me any suggession. Thanks....... ... View Questions/Answers

display contents on the same page by selecting a radio button  February 7, 2013 at 3:47 PM
Bill Amount Rs.<input type="text" name="amm"/> Bill Status: Pending<input type="radio" name="bill_status " value="due" /> Received<input type="radio" name="bill_status" value="received" /> <% String s=request.getParamet... View Questions/Answers

Rich Text Editor in java  February 7, 2013 at 3:04 PM
Hello Sir, Am in a need of working with rich text editor in java. The technologies am using are java with gwt. Am able to get rich text area but i cant store images in that. apart from images am able to process the text alignments, and all other stuff. My problem i... View Questions/Answers

save multiple records into database using jsp/servlet mvc  February 7, 2013 at 2:49 PM
hai, this is my jsp where i have enter multiple username and password and save it to database in single hit user.jsp <form action="UserServlet" method="post" > <table> <tr> <td>Username</td> <td&... View Questions/Answers

Core Java  February 7, 2013 at 12:06 PM
Hi, Can any one please help me to solve below problem. I have one array i.e. int a[6]={2,3,5,6,7,89}; I have to take an input from user to search for elements present in an array. Suppose user has entered 2 then we have to check whether the next largest is present (for 2 elemnt will be 3... View Questions/Answers

Core Java  February 7, 2013 at 11:55 AM
Hi, can any plese help me solve below problem. I have 2 hash map where key is String.I want to store the value of both the hashmap in to map3 such that if both have same key then it will integrate the value not override the key. 1.HashMap1---->{aa=12,ab=123} 2.HashMap2----... View Questions/Answers

wdm optical networks  February 7, 2013 at 10:40 AM
code for physical topology design in optical networks in c++ ... View Questions/Answers

Auto Generated Employee ID  February 7, 2013 at 2:17 AM
Hello Everyone I want to generate an ID like (SCS-0001) and then it should be auto incremented each time a new employee add page is opens. I am using My Sql database. ... View Questions/Answers

how to compare text in two jTextarea  February 6, 2013 at 8:46 PM
give some sample code ... View Questions/Answers

http status 500 error in tomcat 6 while using eclipse helios  February 6, 2013 at 8:43 PM
package com.lala.servlets; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class LoginServlet extends HttpServlet{ public void init(ServletConfig sc){ System.out.println("init() login servlet"); } public void service(HttpSe... View Questions/Answers

http status 500 error in tomcat 6 while using eclipse helios  February 6, 2013 at 8:43 PM
package com.lala.servlets; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class LoginServlet extends HttpServlet{ public void init(ServletConfig sc){ System.out.println("init() login servlet"); } public void service(HttpSe... View Questions/Answers

http status 500 error in tomcat 6 while using eclipse helios  February 6, 2013 at 8:42 PM
package com.lala.servlets; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class LoginServlet extends HttpServlet{ public void init(ServletConfig sc){ System.out.println("init() login servlet"); } public void service(HttpSe... View Questions/Answers

http status 500 error in tomcat 6 while using eclipse helios  February 6, 2013 at 8:42 PM
package com.lala.servlets; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class LoginServlet extends HttpServlet{ public void init(ServletConfig sc){ System.out.println("init() login servlet"); } public void service(HttpSe... View Questions/Answers

http status 500 error in tomcat 6 while using eclipse helios  February 6, 2013 at 8:42 PM
package com.lala.servlets; import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class LoginServlet extends HttpServlet{ public void init(ServletConfig sc){ System.out.println("init() login servlet"); } public void service(HttpSe... View Questions/Answers

How to select Data Between Two dates in Java, MySQL  February 6, 2013 at 6:40 PM
How to select Data Between Two dates in Java, MySQL? Thanks in advance. ... View Questions/Answers

CVS  February 6, 2013 at 5:00 PM
Which CVS are you used? What are the steps are you going to follow to deploy a code in server? ... View Questions/Answers

HIBERNATE  February 6, 2013 at 4:59 PM
What is difference between Jdbc and Hibernate? ... View Questions/Answers

SQL  February 6, 2013 at 4:58 PM
What is Join & Subqueries.As performance basis which is preferable. ... View Questions/Answers

JDBC  February 6, 2013 at 4:56 PM
Difference between statement, preparedstatement and callablestatement? ... View Questions/Answers

SQL  February 6, 2013 at 4:54 PM
How u did one to many & many to many mapping in oracle. ... View Questions/Answers

CORE JAVA  February 6, 2013 at 4:53 PM
What is Garbage collection in java? What is the role of a developer for garbage collection? ... View Questions/Answers

JDBC  February 6, 2013 at 4:53 PM
How you fetch the data between 4 tables using join? Which type of join you have using here? ... View Questions/Answers

CORE JAVA  February 6, 2013 at 4:52 PM
What is called Aggregation and Composition? ... View Questions/Answers

STRUTS  February 6, 2013 at 4:50 PM
Request context in struts? SendRedirect () and forward how to configure in struts-config.xml? ... View Questions/Answers

CORE JAVA  February 6, 2013 at 4:49 PM
Static methods can be participated in inheritance? What is static keyword? What is static keyword? How to write code for static factory method? What is mutable and immutable? ... View Questions/Answers

JDBC  February 6, 2013 at 4:46 PM
How to add set of queries in a single query in JDBC? ... View Questions/Answers

CORE JAVA  February 6, 2013 at 4:45 PM
Q)How to sort a Hash Table, if you pass an Employee Class Object in that First Name, Last Name, Middle Name based on last name how you sorting the Employee Class? Q)How to display the list variables in reverse direction, on what basis list follows the reverse direction? ... View Questions/Answers

JDBC  February 6, 2013 at 4:43 PM
Q)How you define out param in Stored Procedure and what is the data type defined for OUT Param in Stored Procedure? Q)You have one Stored Procedure. In that Procedure When you run the Procedure you got one exception. You don't know the exact coding line where was the exception got? In thi... View Questions/Answers

JAVA  February 6, 2013 at 4:41 PM
Q)Tell me some Java Exception types that you got so far and explain the Scenarios? Q)Suppose if you type wrong tag syntax in your JSP. When you run the JSP what exception will throw? Q)Suppose in your java coding part you did not handle the exceptions clearly. Now you got exceptio... View Questions/Answers

JAVA  February 6, 2013 at 4:41 PM
Q)Tell me some Java Exception types that you got so far and explain the Scenarios? Q)Suppose if you type wrong tag syntax in your JSP. When you run the JSP what exception will throw? Q)Suppose in your java coding part you did not handle the exceptions clearly. Now you got exceptio... View Questions/Answers

JAVA  February 6, 2013 at 4:41 PM
Q)Tell me some Java Exception types that you got so far and explain the Scenarios? Q)Suppose if you type wrong tag syntax in your JSP. When you run the JSP what exception will throw? Q)Suppose in your java coding part you did not handle the exceptions clearly. Now you got exceptio... View Questions/Answers

JAVA  February 6, 2013 at 4:39 PM
What are the data types that allow in the Interface? ... View Questions/Answers

STRUTS  February 6, 2013 at 4:38 PM
Suppose if you write label message with in your JSP page. But that "add.title" key name was not added in ApplicationResources.properties file? What happens when you run that JSP? What error shows? If it is run is it display the fields design in that page (or) not? ... View Questions/Answers

CORE JAVA  February 6, 2013 at 4:37 PM
Tell me some Scenarios why you go for Abstract Class and Interface? ... View Questions/Answers

CORE JAVA  February 6, 2013 at 4:36 PM
I‚??ve a string like below String xyz =‚??null‚??; I want to compare xyz with space which is in other String ABC. What will be the output? ... View Questions/Answers

STRUTS  February 6, 2013 at 4:35 PM
Validation: user entered as 123.34567 I want the value as 123.34 once the user submits. How you will validate it? ... View Questions/Answers

SERVLETS  February 6, 2013 at 4:33 PM
I have two Servlet Containers, I want to send a request from one Servlet from one container to one Servlet in the other container, How can I do? ... View Questions/Answers

SQL  February 6, 2013 at 4:32 PM
Query to list out the duplicate rows in a table? ... View Questions/Answers

JDBC  February 6, 2013 at 4:31 PM
We are using the same piece of code (irrespective of type of driver we are using) for getting the connection. On what basis you decide which type of driver you are using? ... View Questions/Answers

SQL  February 6, 2013 at 4:28 PM
1)What is ref cursor? Where u can use this ref cursor? 2)What is difference between procedure and function? 3)What is trigger? How many types of triggers are there? 4)What is cursor? Explain different types of Cursors with example? ... View Questions/Answers

Struts  February 6, 2013 at 4:27 PM
1)in struts server side validations u are using programmatically validations and declarative validations? tell me which one is better ? 2) How to enable the validator plug-in file? ... View Questions/Answers

Struts  February 6, 2013 at 4:26 PM
in struts I want two struts.xml files. Where u can specify that xml files location and which tag u specified there? ... View Questions/Answers

DMCA.com