Home Answers Questions Question and Answers


Latest Programming Questions askedAsk your question?

overriding in derived class from abstract class  February 16, 2011 at 12:11 PM
why should override base class method in derived class? Instead of override abstract class method, we can make method implementation in derived class itself know? ... View Questions/Answers

Linux  February 16, 2011 at 11:46 AM
hi all, i want to invoke shell program from java. i m using the following code. package script; import java.io.IOException; public class RunShell { public static void main(String[] args) throws IOException { try { Runtime rt= Runtime... View Questions/Answers

File handling  February 16, 2011 at 11:42 AM
how do i search for an occurance of a word in a file and replace with the user input in java? ... View Questions/Answers


List  February 16, 2011 at 11:28 AM
getting values from a form and make a list of them and store them into database? ... View Questions/Answers

View source code of a html page using java ..  February 16, 2011 at 10:53 AM
I could find the html source code of a web page using the following program, http://download.oracle.com/javase/1.4.2/docs/api/java/net/URLConnection.html i could get the html code successfully, but what i want is to get this code into a text file. i am not able to ... View Questions/Answers

top 20 basic programm of java  February 16, 2011 at 10:24 AM
what is the top 20 rule to learn the basic of java. ... View Questions/Answers

index of javaprogram  February 16, 2011 at 10:21 AM
what is the step of learning java. i am not asking syllabus am i am asking the step of program to teach a pesonal student. ... View Questions/Answers

Online Examination System  February 16, 2011 at 10:01 AM
Hi.. I have to create a Online Examination system using struts, Hibernate and stateful session beans.. I Wanna know the use of stateful session beans in project..? ... View Questions/Answers

jsp servlet hosting  February 16, 2011 at 9:59 AM
Hi, What is jsp servlet hosting? Thanks ... View Questions/Answers

jsp hosting  February 16, 2011 at 9:52 AM
What is jsp hosting? Explain me in detail. I have to suggest a hosting company to my boss. Thanks ... View Questions/Answers

connect many access sheet to one access sheet  February 16, 2011 at 9:49 AM
hellow sir. i have six application page it has attribute name rollno(primary key) and attendance of a six diffent different particular subject. and i want to view it on a single access sheet as name rollno attendance of 1,2nd,3rd.....6th. ... View Questions/Answers

cheap jsp hosting  February 16, 2011 at 9:48 AM
Hi, Should we opt for cheap jsp hosting or not? Thanks ... View Questions/Answers

jsp hosts  February 16, 2011 at 9:45 AM
Hi, What is the meaning of jsp hosts or JSP hosting environments? Thanks ... View Questions/Answers

JSP tomcat hosting  February 16, 2011 at 9:42 AM
Hi, What is JSP tomcat hosting? Thanks ... View Questions/Answers

JSP web hosting  February 16, 2011 at 9:37 AM
Hi, What is web hosting? How I can host my JSP/Servlet based applications? How to create a jsp web hosting environment on dedicated server? Thanks ... View Questions/Answers

JSP forwarding  February 16, 2011 at 9:32 AM
What is JSP forwarding? ... View Questions/Answers

code for database deadlock sicuation in java  February 16, 2011 at 9:23 AM
how to prepare code for database deadlock situation in java(JDBC) ... View Questions/Answers

attendance management system  February 16, 2011 at 9:10 AM
i want to project demo on attendance management system. ... View Questions/Answers

Names  February 16, 2011 at 9:08 AM
Pl correct this program. This program will take character from user and show all the name which start that character. import javax.swing.*; class Name1{ public static void main (String arg[]){ char ch; String =JOptionPane.showInputDialog(null,"Enter any character"); switch(ch){ case 1: JO... View Questions/Answers

Java-XML Xerces/Jaxp  February 16, 2011 at 7:46 AM
Im new to Java DOM development. I have doubt or I am bit unclear about fact of JAXP and Xerces. My question is why developer use xerces when jaxp does the job? ... View Questions/Answers

Java-XML Xerces/Jaxp  February 16, 2011 at 7:46 AM
Im new to Java DOM development. I have doubt or I am bit unclear about fact of JAXP and Xerces. My question is why developer use xerces when jaxp does the job? ... View Questions/Answers

procedure  February 15, 2011 at 8:36 PM
step by step procedure to build servlet or jsp in eclipse...? ... View Questions/Answers

UIWebView Activity indicator  February 15, 2011 at 8:04 PM
Can anyone please explain, how to implement a Activity Indicator on UIWebView in my iPhone/iPad application. Thanks! ... View Questions/Answers

AWT Tutorials  February 15, 2011 at 7:49 PM
How can i create multiple labels using AWT???? ... View Questions/Answers

mysql jdbc connectivity  February 15, 2011 at 6:45 PM
i want to connect retrieve data from mysql using jdbc ... View Questions/Answers

Birt Report  February 15, 2011 at 6:27 PM
Help with birt reports in myeclipse. I'm getting an exception when trying to display the report. Can u give me the complete procedure and the code as well. The exception is: Cannot open the connection for the driver: org.eclipse.birt.report.data.oda.jdbc.dbprofile. Please reply fast its urgent.... View Questions/Answers

INTERFACE  February 15, 2011 at 5:35 PM
how interface support multiple inheritance in java? ... View Questions/Answers

take data from one table and insert same in another  February 15, 2011 at 5:26 PM
I want to know when a new field update in table and the same data has to update in another table ... View Questions/Answers

jdbc  February 15, 2011 at 3:54 PM
why do we need to load jdbc drivers before connecting to database ... View Questions/Answers

dwr-ajax  February 15, 2011 at 3:43 PM
i have four dropdown if i select first dd then only corresponding values must be there in 2nd dd,same with 3 and 4 and onchange it would not refresh the whole page. i have to use DWR.. ... View Questions/Answers

Can we replace main() with static block or with other static methods?  February 15, 2011 at 3:34 PM
what is the use of public static void main()?can't we achieve the same thing through static block or through other static methods? ... View Questions/Answers

IP Address validation  February 15, 2011 at 3:10 PM
hi,I m now working with my final yr project,nd stuck in th middle i don't know how to validate the IP address in a JText field...(ie) the user shld enter the IP address in JTxt and when he hit the 'Submit' button the actionlistener shld check its valid or not...like if user have entered 256.324.1... View Questions/Answers

Clicking F5 and reentering value throws Null pointer exception  February 15, 2011 at 3:07 PM
Hi, My page performs search operation.Normally when i enter a value and click on search it fetches a list corresponding to the search value entered by me.But when i refresh my page and enter any value it is throwing Null pointer exception.can anyone help me please? Kirti ... View Questions/Answers

i need program to insert data in database using javascript  February 15, 2011 at 2:56 PM
please help me.. ... View Questions/Answers

write a java program  February 15, 2011 at 2:49 PM
write a program to print '*' in a circular form? ... View Questions/Answers

tree view  February 15, 2011 at 2:43 PM
display a tree view in flex?nodes will be in the form of + and -? ... View Questions/Answers

Servlet  February 15, 2011 at 2:06 PM
how to navigate one servlet page to another servlet page? ... View Questions/Answers

collections  February 15, 2011 at 12:59 PM
in collections can we perform binarysearch on arraylist elements without sorting them ... View Questions/Answers

Checkbox method  February 15, 2011 at 11:09 AM
what is the method to check if the checkbox is checked or not? ... View Questions/Answers

JSF Sample Programs  February 15, 2011 at 10:52 AM
I need a JSF sample programs ... View Questions/Answers

JSF Rendered Attribute  February 15, 2011 at 10:51 AM
i need the example for jsf with rendered attribute. ... View Questions/Answers

dwr-ajax  February 15, 2011 at 10:47 AM
using dwr how to populate state which are coming from database after selecting their corresponding country ... View Questions/Answers

start and deploy  February 15, 2011 at 9:25 AM
how to deployee java web application in glassfish by using netbeans6.7 ... View Questions/Answers

java  February 15, 2011 at 3:10 AM
I am doing engg. with Electrical branch,but i want to be a SCJP .Can I go in this field?? How much time it will take be a professional java programmer in any java field like J2ME! ... View Questions/Answers

how to use calender in php  February 15, 2011 at 12:30 AM
how to put calender in php? ... View Questions/Answers

Hidden Program  February 14, 2011 at 10:05 PM
Hello Sir/Madam, I need to know how many files are hidden in a folder or drive using java program ... View Questions/Answers

please help me to overcome this problem  February 14, 2011 at 7:59 PM
how to make it easy to write java code. can u please give me suggestions ... View Questions/Answers

database  February 14, 2011 at 7:26 PM
In my project,i want the user to specify the name of the database he wants to create in mysql and then also the name of the table along with the column names he wants in that database....Im doing my project in netbeans...swings.......If it is possible kindly help me Thank You... ... View Questions/Answers

j2me beginner  February 14, 2011 at 6:21 PM
how to create an application for sending files via bluetooth please i want full codings ... View Questions/Answers

struts+hibernate  February 14, 2011 at 6:04 PM
org.hibernate.InvalidMappingException: Could not parse mapping document from resource roseindia/net/hibernate/Address.hbm.xml ... View Questions/Answers

voip  February 14, 2011 at 6:00 PM
can you plz send me the source code for the Voip code as you were submitting at your college. i would be thankful to you. ... View Questions/Answers

Fleek Management System(FMS)  February 14, 2011 at 5:44 PM
Hi, Please anybody can reply....I wanna develop a project(FMS) in Java , which was already developed in PHP. Now what technologies should i apply for developing this project. The main aim of this project is to transfer the load(unload) from one area to another area through lorries. Than... View Questions/Answers

plese help  February 14, 2011 at 4:36 PM
i need a program to convert a decimal num into binary num in java language by using array and loop ... View Questions/Answers

Retriving multiple values of checkboxes in struts  February 14, 2011 at 4:34 PM
how to retrive multiple values of checkboxes of jsp in action class ... View Questions/Answers

Create PDF from java  February 14, 2011 at 2:52 PM
Good afternoon, I have a problem how to create report. i want to create report in pdf file from my database in mysql. Now i use IReport too create pdf file, can't work...., pleas tell me a tutorial/source code to create pdf file from database call from java programming. thank you... View Questions/Answers

Security in Java  February 14, 2011 at 2:42 PM
how does java provide security in a website ... View Questions/Answers

Error in simple session bean ..................  February 14, 2011 at 2:38 PM
Hi friends, i am trying a simple HelloWOrld EJb on Websphere Applicatiopn server 6.1. Can any one plz help me to solve this issue. here is the client code which i have written. package com.ibm.pck; import java.util.Properties; import... View Questions/Answers

java  February 14, 2011 at 2:14 PM
how to use jni? ... View Questions/Answers

SCJP  February 14, 2011 at 1:14 PM
fees details about scjp? what are the best books for preparing to scjp. how many time scjp exam's are conducted for one year? please such scjp related valuable information ... View Questions/Answers

java hello and timer alert application  February 14, 2011 at 12:37 PM
Hi, Please help me create a simple Java application that can display "Hello world" and current Time alert on mobile device screen using mobile screen emulator. Regards ... View Questions/Answers

iPhone iPad Default.png  February 14, 2011 at 12:11 PM
How can i set the default image for both iPhone and iPad in my global application XCode?? Thanks! ... View Questions/Answers

read xml using java  February 14, 2011 at 10:56 AM
<p>to read multiple attributes and elements from xml in an order.... ex :component name="csl"\layerinterfacefile="poo.c"\interface type=""\level="0"\source_file="ppp" etc as wise each attribute n element to b printed... here is the xml code..................... View Questions/Answers

binary tree  February 14, 2011 at 10:39 AM
can a binary tree be implemented with out comparing the value with root? ... View Questions/Answers

webservice  February 14, 2011 at 10:34 AM
hello deepak.... i have followed the tutorial which u have provided(http://roseindia.net/webservices/web-services-database.shtml)..... But still database is not updating... Pls look into my problem.... regards-- harish kumar... View Questions/Answers

stopwatch  February 14, 2011 at 8:40 AM
Java code for stopwatch timer which should start from zero ... View Questions/Answers

ASSIGN TIME LIMIT  February 14, 2011 at 12:09 AM
import java.util.*; class enter{ public static void main(String args[]){ int a; Scanner p=new Scanner(System.in); /*add some command such a time limit assign for next two commands*/ a=p.nextInt(); System.out.println(a); System.out.println("... View Questions/Answers

Help for Check availability of user  February 13, 2011 at 8:29 PM
I need the code for check availability of users in the database before login.I placed a button for Check Availability.Can it be done with this or ajax should be used? ... View Questions/Answers

sahabaj  February 13, 2011 at 7:23 PM
diamond shape pattern print of numbers 123456789101112131415987654321 ... View Questions/Answers

File Upload  February 13, 2011 at 6:44 PM
Hi I need script / string in PHP where I uploaded the file in html frontend and it should sent the uploaded file as attachment to my email address ... View Questions/Answers

match mismatch of shaadi website code in jsp  February 13, 2011 at 6:38 PM
match mismatch code in jsp ... View Questions/Answers

Declare Reference variable  February 13, 2011 at 6:14 PM
class A { int a; //instance variable static int b; // static variable A ref; static A refs; public static void main(String[] args) { // statements followed here... } } My Question is that instance v... View Questions/Answers

pointer  February 13, 2011 at 5:21 PM
CONSTRTUCT A STRUCTURE FOR EMPLOYEE RECORD THAT CONTAINS A PERSON'S NAME, AGE, EMPLOYEE AND SALARY.WRITE A STATEMENT THAT DECLARES A VARIABLE empInfo and a pointer emPtr of type EMPLOYEE.then use the pointer to display all information of imployee info ... View Questions/Answers

java  February 13, 2011 at 5:07 PM
can we write main() with private.. example--private static void main(String x[])? ... View Questions/Answers

creating a file in a directory  February 13, 2011 at 1:47 PM
hi i have tried all the file methods to create a file inside a directory but none of them r working some of them are new File ( ".", "C:/fileInRoot.txt" ) new File ( "myDir", "/otherDir" ) File( "myDir/OtherDir" ) File( "/OtherDir" ); new File ( "species/clan/individual.txt" ) can... View Questions/Answers

sahabaj gayen  February 13, 2011 at 1:43 PM
Write a program which takes a string (maximum 80 characters terminated by a full stop. The words in this string are assumed to be separated by one or more blanks. Arrange the words of the input string in descending order of their lenghts. Same length words should be sorted alphabetically... View Questions/Answers

Unable to execute JSP page  February 13, 2011 at 12:40 PM
I have written one jsp file. It contains html tags and jsp directives. I have saved the file with the extension .jsp. The tomcat server is already running onto my machine. I have saved the jsp file within demo-examples which is again within webapps folder of apache-tomcat-6.0.14 folder. B... View Questions/Answers

hava  February 13, 2011 at 11:48 AM
write a program to count the no of repeated words in a sentence by using a return statement? ... View Questions/Answers

java  February 13, 2011 at 11:47 AM
write a program to count the no of words in a sentence by using a return statement? ... View Questions/Answers

java  February 13, 2011 at 11:45 AM
tribonacci series program in java by using a return statements ... View Questions/Answers

database  February 13, 2011 at 11:17 AM
I wanted to know if it is possible to create a database in mysql by letting the user enter the name of the database in swing gui..im doing my project in netbeans...Thank You ... View Questions/Answers

online library management  February 13, 2011 at 10:16 AM
how to divert user from log in page to home page depending on their category(like student or staff in case of ol library) using java servlet? ... View Questions/Answers

prompt using  February 13, 2011 at 2:01 AM
I want examples to use prompt and how to move the item from the prompt to a cell in a table. thank you. ... View Questions/Answers

using prompt  February 13, 2011 at 1:57 AM
how to use prompt ... View Questions/Answers

A TRIAL  February 13, 2011 at 12:31 AM
Write a program for a furniture company that requests from user the type of wood, the table size, the number of drawers, the quantity of tables to order, delivery service required, and finally display the total order amount. The type of wood is Pine, Oak or Mahogany; and there are three table siz... View Questions/Answers

fresher  February 12, 2011 at 9:03 PM
why we will not move the result set object from one application to another application ... View Questions/Answers

Array  February 12, 2011 at 8:42 PM
i having problem how to make algorithm for [a][5] [a][10] [b][15] [b][10] [c][5] [c][5] . . . . sum of [a] = 15 [b] = 25 [c] = 10 . . . . ... View Questions/Answers

java basics  February 12, 2011 at 8:29 PM
Write a java program to calculate the sum of the series as given below: 1 - 2 + 3 - 4 + 5 - 6 + 7 - 8 + 9 ... View Questions/Answers

common Menu bar(toolBar) at the top of all view  February 12, 2011 at 7:26 PM
I creat on login page and after sign in I move to next page. Now I want to add menu bar at the top of my all view. Any one have any idea abt how to do it?? ... View Questions/Answers

implement microsoft office  February 12, 2011 at 6:42 PM
how implement microsoft office in my java swing project ,or when microsoft office is not install then file open in defualt text editar.please send me source code. ... View Questions/Answers

Strut  February 12, 2011 at 3:56 PM
example how to use validators in struts ... View Questions/Answers

NSNotificationCenter Example  February 12, 2011 at 3:35 PM
Hi, can anyone help me to understand NSNotificationCenter better ..? If possible then please provide me an example or tutorial of nsnotificationcenter in objective c. Thanks! ... View Questions/Answers

web page design  February 12, 2011 at 3:08 PM
Great Applianz Ltd. was established in 1985, in New York. It deals in home appliances. Initially, it manufactured home appliances and sold them through selected stores. However, with a gradual increase in their popularity and sales, the company has opened its exclusive stores in New York. In a re... View Questions/Answers

Analog clock  February 12, 2011 at 2:06 PM
how to develope analog clock using java? ... View Questions/Answers

other form  February 12, 2011 at 1:55 PM
Can I write this code in other form: if (quantity>=5) { System.out.println("Congrats!! You get a discount of 5%."); } else { System.out.println("you can avail a discount of 5% when you make a purchase of 5 items."); } ... View Questions/Answers

APLIANCE DETAILS  February 12, 2011 at 1:49 PM
I have created a package named ApplianceDetails that contains the Appliance class. Now I want to create a class named NewAppliance that stores the details of the newly launched appliances.I used the following syntax to code the NewAppliance class that inherits from the Appliance class: pu... View Questions/Answers

Java technology  February 12, 2011 at 1:42 PM
how does java technology implement security ... View Questions/Answers

check  February 12, 2011 at 1:29 PM
interface validateInfo { public void validate(String empcode, String password); } class updateInfo implements validateInfo { String empcode; String password; public void validate(String code,String pass) { this.empcode=code; this.passwor... View Questions/Answers

pattern matching - four way technique  February 12, 2011 at 12:43 PM
Hi, here's my question.. I am trying to implement pattern matching using brute force algorithm where I am trying to apply four way technique to search a given pattern in a text.in this four way technique I will be splitting text which is of length "n" into two halves i.e.from 0 to n/2 and n/2 t... View Questions/Answers

diamond print  February 12, 2011 at 12:32 PM
print the pattern 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 7 8 9 10 ... View Questions/Answers

MKMapView Change Red Pin Color  February 12, 2011 at 12:08 PM
MKMapView Change Pin Color Hi, in my iphone map view application, i displayed the image on annotation instead of custom pin. But however on click it changes to red color pin. Can any one please tell me how can i show the same image ever after it's taped. ... View Questions/Answers