Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

JAVA  July 7, 2010 at 6:04 PM
Hi.... Can any one say, how to count the number of objects used in a program... pls send me the correct answer As soon as possible...Advance Thanks... ... View Questions/Answers

Simple program to combine all html,ajax,java,servlets,jsp,json  July 7, 2010 at 5:42 PM
Hi, I learned Java,servlets,jsp basics, html, ajax, json and css. I want to do a program which is a combination of all those technology. For that, i planned to design a simple html page with a input field and submit button. I tried to do that if i click a submit button, the value in t... View Questions/Answers

logout problem..  July 7, 2010 at 5:30 PM
hi... first of all thanks for ur help.Actually i m developing a web application whole of the functionality is completed but their is some problem with the the logout,i m not able to logout when that application runs . i m using eclipse with my sql as a back end.basically but i have done in... View Questions/Answers


servlets  July 7, 2010 at 3:12 PM
I am doing small project in java on servlets. I want to generate reports on webpage ,how is it possible and what is the difference between dynamic pages & reports ? tell me very urgent pls,pls..................thanks, ... View Questions/Answers

java  July 7, 2010 at 1:36 PM
how to access excel file through jdbc show record in table in swing. ... View Questions/Answers

Interview Question  July 7, 2010 at 9:37 AM
1)If we give S.O.P. statement after finally block shall it prints or not?2)Write a program in java to read a file & write in to another file?3)Write a program taking two arrays and compare those two and print, without using functions? ... View Questions/Answers

JSP  July 7, 2010 at 9:17 AM
in my program i have placed a filename label and one text box if i enter any file name such as text files ,documents etc...i will put one search button when i click that search file it will search from our drives like C,D,E how many partition we have our system.If the file is... View Questions/Answers

servlet and xml  July 7, 2010 at 12:11 AM
how to call or invoke a form.html with a servlet using web.xml ... View Questions/Answers

How Compare 2 xml files with JDOM  July 6, 2010 at 8:30 PM
Hi I'm want help on how can I compare 2 xml files using JDOM in java and identify whether have the same content or notMy files can simply be File1<staff> <firstname/> <lastname/> </staff>File2<staff>... View Questions/Answers

How to send data by ajax to servlet?  July 6, 2010 at 7:50 PM
Hi, Can i send a value from a HTML file to servlet via Ajax? If it is possible please give me a sample codeThanks ... View Questions/Answers

variable setting for servlet  July 6, 2010 at 6:05 PM
how to set environment variable and class path variable for servlet and to compile servlet files i am using tomcat 6.0 ... View Questions/Answers

JAVA  July 6, 2010 at 5:51 PM
Desing a class for complier number is java in addition two methods for basic operation on complex number provide a method to return the number active object created ... View Questions/Answers

I have a small problem in my datagridview  July 6, 2010 at 5:40 PM
i have datagridviewer in c#(platform) and i try that change cell beckground, this cell Should be for example 5(integer!) if in my datagridwiewer Will be 5(whatwhich should be take in my base_database_) its back color will be for example blue.. -------change the backcolor of individual cells... View Questions/Answers

jsp  July 6, 2010 at 4:44 PM
Hi,I need solution this program.In cart.jsp I printed the total amount of the products then the next page is shipping and billing details and the next page is payment details. What is need is the total amount which is in the cart.jsp should be printed on the textbox of the payment.jsp pa... View Questions/Answers

java project  July 6, 2010 at 4:38 PM
Hi,I wish to write a Java application project in school. I wish to humbly request for sample java project source codes to enable me write one. eg Hotel Reservation System, Flight scheduling system, Passenger demand forecasting system, etc.Regards ... View Questions/Answers

core java  July 6, 2010 at 4:00 PM
when write java program in editplus.then save&compile the file.1-text file2-class file3-bak filehow can get this files plz tell me ... View Questions/Answers

core java  July 6, 2010 at 3:50 PM
public static void main(String[] args) why are write only string[]..why cann't write int,float ... View Questions/Answers

Hibernate code  July 6, 2010 at 3:05 PM
I am facing a problem in hibernate program.Error is ::: Error in reading contact.hbm.xmlcontact.hbm.xml is my hibernate mapping file. ... View Questions/Answers

Excel conversion tool.  July 6, 2010 at 1:57 PM
Hi, I need a conversion tool which can convert .xls(Excel 2003) to .xlsx (Excel 2007) and vice-versa.Please suggest any links ro tools.Thank You, ... View Questions/Answers

tread  July 6, 2010 at 1:29 PM
what is a thread and synchronization? give real time example? ... View Questions/Answers

with out class  July 6, 2010 at 1:02 PM
can we write a program with out a class in core java?if yes,give example ... View Questions/Answers

online shopping project in java  July 6, 2010 at 12:17 PM
hii, i am doing a project online shopping in JSP-SERVLET.I wanted to know that i need 2 use images which will be retrieved through oracle 10g.1) what is the best strategy for storing and retrieving images in oracle?? i heard directly storing images in oracle through blob degrades the per... View Questions/Answers

fully object oriented language  July 6, 2010 at 11:30 AM
Is java is a fully object oriented language?if no,why? ... View Questions/Answers

Real time examples  July 6, 2010 at 11:19 AM
what is method overloading,method overriding,constructor overloading concept in java and explain with real time examples? ... View Questions/Answers

Hibernate  July 6, 2010 at 10:35 AM
when I run Hibernate Code Generation wizard in eclipse I'm getting the following error. I added ojdbc14.jar to my build path. Still I'm getting this error. please let me know, how to resolve it.org.hibernate.console.HibernateConsoleRuntimeException: Problems while loading database driver... View Questions/Answers

How to read excel2007 file  July 6, 2010 at 9:19 AM
Dear sir , I am able to read a excel 97-2003(.xls)files using apache poi.But for 2007(.xlsx)files to read using poi its nt possible.So please help me sir....Thanks .... ... View Questions/Answers

Hibernate- Oracle connection  July 5, 2010 at 10:44 PM
In Eclipse I tried Windows --> Open perspective--> otherin that Database DevelopmentRight click on databaseconnection --> NewOracleAdded ojdbc14 Jar file pathUID and password as scott and tiger.clicked Test connec... View Questions/Answers

Java Servlets  July 5, 2010 at 8:14 PM
1.What is Pojo class? How and where it is used?2.Can anyone tell me where can execute servlet program online?3.Can anyone tell me where can i download NetBean 5.5.1? ... View Questions/Answers

multiple inheritance  July 5, 2010 at 7:28 PM
Why java does not support Multiple Inheritance? ... View Questions/Answers

JAVA  July 5, 2010 at 5:39 PM
write a program to display the higest number stroed in two variables,test whether the higest number is even or odd ... View Questions/Answers

java  July 5, 2010 at 2:46 PM
to create heading'parameter'which tag should be inserted in javadoc? ... View Questions/Answers

clarification in jsp  July 5, 2010 at 8:57 AM
Hi did jsp supports post method to send values to next jsp?if possible how to use post method in jsp?and what is the default method(get/post) of jsp? ... View Questions/Answers

Displaying calendars  July 4, 2010 at 10:03 PM
Write a program that prompts the user to enter the year and first day of the year, and displays the calendar table for the year on the console. For example, if the user entered the year 2005, and 6 for Saturday, January 1, 2005, your program should display the calendar for each month in the year, as... View Questions/Answers

java  July 4, 2010 at 6:39 PM
please help to calculate the distance between two image pixels difference so that we can now wheather a image is a exact match or not based on the search query given in the text box ... View Questions/Answers

dynamic display  July 4, 2010 at 4:44 PM
hi, i want to display dynamic values in drop drown box in a jsp page.these values are in the form of arraylist's object which came form another servlet or bussiness logic after being validated in rdbms.hope u will understand what i have mentioned.plz reply soon.... ... View Questions/Answers

JAVA  July 4, 2010 at 4:49 AM
write the program for class called caculator difine two variable write method for performing the operation for addition ,subtration,multipication,division make using of constructor in this class ... View Questions/Answers

compilation error  July 3, 2010 at 10:32 PM
Dear sir,When i compile some pgms i am getting below error.what may be the reason?"uses or overrides a deprecated API. Note: Recompile with -Xlint:deprecation for details." ... View Questions/Answers

Help with jQuery show hide div script  July 3, 2010 at 8:30 PM
Hi guys,I have a jquery script for showing and hiding the content inside, between two divs, controlled with radiobuttons. I like to use the same jquery script for another group of divs and radiobuttons so I'm trying to create a loop are so inside jQuery.Could somebody please help. ... View Questions/Answers

Insertion Sort  July 3, 2010 at 7:14 PM
Hello rose india java experts.If you don't mind.Can you help me.What is the code for Insertion Sort and Selection Sort that displays LETTERS in alphabetical order from A to Z.Thank you.Hope you gonna helpme. ... View Questions/Answers

servlets  July 3, 2010 at 5:40 PM
what kind of reports java will supportand also send the pdf format of that support report pls ... View Questions/Answers

servlets  July 3, 2010 at 4:49 PM
how to generate reports in servelts pls tell me from first onwards i.e., i don't know about reports only i know upto servlets that's why pls tell me from begining ... View Questions/Answers

user defined subclass of throwable class  July 3, 2010 at 10:56 AM
Dear Sir,pls help me to write this pgm:Program to illustrate the use of user defined subclass of throwable class ... View Questions/Answers

Compiling Error  July 2, 2010 at 10:36 PM
cant able to compile java servlet file in the command prompt? WHY?but i can compile normal java filegive me answer to fix my problem. ... View Questions/Answers

Compiling Error  July 2, 2010 at 10:31 PM
cant able to compile java servlet file in the command prompt? WHY?but i can compile normal java filegive me answer to fix my problem. ... View Questions/Answers

mapping  July 2, 2010 at 10:28 PM
how does the web.xml works and how does the mapping done will you explain me? ... View Questions/Answers

GUI testing/software testing  July 2, 2010 at 9:39 PM
how to create a GUI testing/software testing module in java? ... View Questions/Answers

linux4.2 supported jdk versions  July 2, 2010 at 8:30 PM
linux 4.2 supported jdk versions ?.is it supports to jdk1.6(linu4.1.2)or not?please giive me clarifications ... View Questions/Answers

java implementation  July 2, 2010 at 7:53 PM
Im M.Phil research scholar,i need a software testing module implemented in java.My research area is software testing,if anyone could help me out in this? ... View Questions/Answers

when sending the mail from java I am getting the below error  July 2, 2010 at 1:42 PM
when sending the mail from java I am getting the below error:Exception in thread "main" java.lang.NoClassDefFoundError: javax.mail.internet.MimeMessage at java.lang.Class.initializeClass(libgcj.so.7rh) at SendMail.main(SendMail.java:23)Caused b... View Questions/Answers

javamail supported java versions (mail.jar or jdk versions)  July 2, 2010 at 1:37 PM
Hi.Javamail suported version jdk version? ... View Questions/Answers

java script code  July 2, 2010 at 12:56 PM
I want make header like-http://www.sigmainfotech.com.au/ this sitebut in this site header make in flash,I use java script or any other script.like that side click left side image it expand in header, and same way header bottom image mouse over it expand.so please help me asap... View Questions/Answers

scriptlet tags in jsp  July 2, 2010 at 10:36 AM
i know we can do method implementation in declarative tag, but can we do method implementation in scriptlet tag? please reply, if poss with example. ... View Questions/Answers

JSP Code  July 2, 2010 at 10:28 AM
Hi,Do we have a datagrid equivalent concept in JSP? If so, then please help me to find the solution of the problem.Its Urgent.........Please...........RegardsVinay Kumar Rai ... View Questions/Answers

JSP Code  July 2, 2010 at 10:25 AM
Hi,I have a problem in limiting the number of row display in the table.For example, if i have 1000 records in my table & want to display only 10 records per pages in jsp, then how can i achieve this concept.Please help me to find the solution. Its really urgent.... View Questions/Answers

struts hibernate  July 1, 2010 at 6:27 PM
how to integrate struts and hibernate ?is need any plugin ?programmer manually create that plguin? ... View Questions/Answers

java  July 1, 2010 at 4:11 PM
twin primes are prime numbers whose difference is 2.for example3,5;5,7;11,13;17,19;etc.define a class number problem with suitable methods which takes an integer argument and prints out all the twin primes below the number ... View Questions/Answers

java  July 1, 2010 at 4:04 PM
A programe in java for making a calculator. ... View Questions/Answers

calculator  July 1, 2010 at 4:01 PM
Some ideas for the project of calculator. ... View Questions/Answers

Copy a Html chart into PPT  July 1, 2010 at 10:28 AM
Hi Experts,i am facing with a problem without solution.I have a Html site and would like to write a code so that by clicking on a button the graph will be copied in an active ppt.Could you please help?Thank you in advance.CheersDreams... View Questions/Answers

Asking for exercise  June 30, 2010 at 11:10 PM
Can you send me a small exercise question -a prograsm for collections in java? ... View Questions/Answers

arrays  June 30, 2010 at 9:08 PM
1)write a program that take integer array as input and find the second largest number in array?(Array values taken from keyboard)?2)Given two array A & B and B has same elements same as A but one element missing? Write a program that take arrays A & B as input and find missing element ... View Questions/Answers

OOPs  June 30, 2010 at 8:35 PM
i know what is an abstract class and what is an interface but i wanted to know in which scenarios i use them and why nowadays java is stressing on interface programming.and i also want to know where do we exactly implement singleton pattern in our application. ... View Questions/Answers

how to get a values from a multipart/form-data  June 30, 2010 at 3:57 PM
Dear sir , I used your code for getting a values,i used the fllowing<%@ page language="java" %><html><body><SCRIPT type="text/javascript"> function submitForm(f){ var form = document.createElement(&quo... View Questions/Answers

social bookmarking  June 30, 2010 at 11:38 AM
<?php$services = array ( "digg" => array ( "Target" => "http://digg.com/submit?phase=2&url=PERMALINK&title=TITLE", "Image" => "digg-48x48.png", "Title" => "Digg" ... View Questions/Answers

Printing numbers in pyramid format  June 30, 2010 at 10:42 AM
Q) Can you please tel me the code to print the numbers in the following format: 1 2 3 4 5 6 7 8 9 10 ... View Questions/Answers

website deployment  June 30, 2010 at 8:46 AM
Hi All,Requirment: To fetch records depends on the scenario from database and display on webpages in a grid format with paging.Bind the table data corresponding to combo box selection.IDE : NetBeans 6.7Web Server : Apache Tomcat 5.5Database Server: FireBird... View Questions/Answers

dout  June 30, 2010 at 7:22 AM
where to down load jdk latest vesion ... View Questions/Answers

java number to word  June 30, 2010 at 12:32 AM
Can somebody please fix this to come out with the word, not the number 23?import java.util.Scanner;public class WordExtractor5{ //----------------------------------------------------------------- // Pulls integers from a string to form a word. ... View Questions/Answers

How to convet reader to double?  June 29, 2010 at 11:13 PM
I have this set of coding which read the input from the com1 port. I wan to ask how to convert the input (the reader) into Double so that the input can perform arithmetic operation?/* * To change this template, choose Tools | Templates * and open the template in the editor.... View Questions/Answers

why mails are sending from the linux server  June 29, 2010 at 2:07 PM
Mails are not sending from the linux server.We have 3 systems. server system is windows 2003 server and Our java application is inside linux server. Whenever we send the mails from java application,mail are not sending .Mail server is installed on windows 2003 server (all are in network). ... View Questions/Answers

subclasses an imported class  June 29, 2010 at 11:15 AM
Sir,Pls help me to write:Program to illustrate subclasses an imported classThanks ... View Questions/Answers

POST AND GET METHOD  June 29, 2010 at 1:58 AM

java  June 29, 2010 at 12:15 AM
write a java program that will read a positive integer and determine its binary equivalent ... View Questions/Answers

java  June 29, 2010 at 12:13 AM
write a java program that will read a positive integer and determine its binary number ... View Questions/Answers

jsp code  June 28, 2010 at 6:59 PM
in a jsp a table is existed ,in table each row contain one checkbox and name and desription how to delete specific rows in a table . ... View Questions/Answers

XML  June 28, 2010 at 3:56 PM
Write a program using SAX that will count the number of occurrences of each element type in an XML document and display them. The document file to be processed should be identified by the first command-line argument. ... View Questions/Answers

jdbc,odbc,MySQL,swing  June 28, 2010 at 3:42 PM
write a code that displays a menu list of all available database drivers in a window,and allows the user to select any driver from this list and execute any query (within a text field)related to the selected database driver.It is very well known as jdbc front end of a database. ... View Questions/Answers

merge sorting in arrays  June 28, 2010 at 3:31 PM
Write a program to insert string or characters to an array and apply merge sorting on this array ... View Questions/Answers

to add on to my queries  June 28, 2010 at 1:32 PM
Dear Experts,Sorry but I am worried that I did not explain clearly so I am adding in the error message I get from Netbean IDE when I run that queries using the last solution provided.I'm puzzled that given a perfect match - that is same subjects from parent's requiremen... View Questions/Answers

further clarification needed  June 28, 2010 at 1:27 PM
Dear Experts,I refer to the last answer you have written to me.The good news is that there's no error already but the code is still not working for me. As Tsuch, I hope to clarify about the query statement.I would like to know how by executing that query statemen... View Questions/Answers

jsp  June 28, 2010 at 10:57 AM
how to write the jsp code to enable and disable the textfields based on the selection of drop down list elements ... View Questions/Answers

java compilation error  June 28, 2010 at 10:38 AM
hi i am getting org.hibernate.exception.GenericJDBCException: Cannot open connection exception when runnig the code why this exception is coming ... View Questions/Answers

html dropdownlist code  June 28, 2010 at 1:42 AM
hi how to get textfield in html when i select the option others in the dropdown list, pls provide the code? ... View Questions/Answers

DynaActionform in JAVA  June 27, 2010 at 9:54 PM
how to use dynaActionFrom?why we use it?give me a demo if possible? ... View Questions/Answers

Validation  June 27, 2010 at 9:49 PM
what is the best way to use validation in Struts?either "validation.xml" or JavaScript. ... View Questions/Answers

struts compilation  June 27, 2010 at 7:44 AM
how to compile struts example ... View Questions/Answers

Averaging an Array  June 27, 2010 at 5:09 AM
Write two overloaded methods that return the average of an array with the following headers. However, prompt user to enter 10 int and 10 doubles. a) public static int average(int[] array)b) public static double average(double[] array) ... View Questions/Answers

main func  June 27, 2010 at 3:35 AM
why do we pass array of strings in main function of java? ... View Questions/Answers

Arrays  June 26, 2010 at 11:43 AM
1)write a program that take integer array as input and find the second largest number in array?(Array values taken from keyboard)?2)Given two array A & B and B has same elements same as A but one element missing? Write a program that take arrays A & B as input and find missing element ... View Questions/Answers

random numbers  June 26, 2010 at 10:13 AM
Hello i need this code to be modified for me to display the random numbers, but not twice or more. I mean i need a number to be display once. This code allows some numbers to be displayed more than once.Hi Friend,Try the following code:import java.util.*;cla... View Questions/Answers

Java word extraction program.  June 26, 2010 at 4:52 AM
Need to code a public class named WordExtractor that contains a main method. Prompt the user to enter a line of text and read it in using a Scanner object. The line of text should follow the prompt on the same line of the console screen. next, prompt the user to enter an integer for the starting let... View Questions/Answers

corejava  June 25, 2010 at 11:38 PM
how to write a program to multiply 1000 digit numbers with out using biginteger class ... View Questions/Answers

Getting an exception  June 25, 2010 at 4:56 PM
Dear Sir , While sending a mail am getting an following exceptionjavax.mail.MessagingException: 554 mail server permanently rejected message (#5.3.0)so how to over come from this please help me sir..Thanks and RegardsHarini veerapur. ... View Questions/Answers

clarify date class  June 25, 2010 at 1:29 PM
Dear,clarify this question..."Develop Date class in Java similar to the one available in java.util package. Use JavaDoc comments."Give me the source code and explain how to create classes similar in java.util or any packages.. please.thanks i... View Questions/Answers

JAVA  June 25, 2010 at 11:34 AM
i browsed a picture in a html page then i want to use the path in the jsp then what i to do ?in java the the path of a file takes the two slashes instead of one example for c:\vinay\ghaf.gif we must use c:\\vinay\\ghaf.gifmy doubt is in the above question the returned... View Questions/Answers

Spring Hello World prog  June 25, 2010 at 8:07 AM
I used running the helloworld prog code mentioned in http://www.vaannila.com/spring/spring-mvc-tutorial-1.htmlI'm getting null pointer exception. as shown below. I added all the jars and my folder structure is similar to what showed in the website. I guess the null pointer e... View Questions/Answers

Spring Framework Training  June 25, 2010 at 4:29 AM
THinking of taking spring framework training from Intertech. Here's the class... does this give me what I need? http://www.intertech.com/Courses/Course.aspx?CourseID=99468 ... View Questions/Answers

Java code  June 24, 2010 at 10:19 PM
Write a Java program that accepts 5 integers and sort them ascending?Thank you so much.for helping me.thanks roseindia.hope you will help me ... View Questions/Answers

jsp  June 24, 2010 at 2:34 PM
LOAD DATA INFILE 'tempc.txt' INTO TABLE main FIELDS TERMINATED BY '|' LINES TERMINATED BY '#'(A200,A060,A620,A300,A201,A490,A400,A101,A630,A040,A600,A440,A100,A610,A320,A310,A002,A020,A022); ... View Questions/Answers

surface chart  June 24, 2010 at 2:25 PM
i have to make a surface chart of a piece of land with data given for each point in the xy plane....the chart should be such that the areas with different data range should show up in different colour.seriously need help on this one... ... View Questions/Answers