Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

files  March 9, 2011 at 11:15 AM
1.Create a class called CopyFromFile. Use the character stream classes to first read from the file ??employee.txt?? and write it to the ??copy.txt?? file? Now Convert the unbuffered stream into a buffered stream using the wrapping idiom. ... View Questions/Answers

files  March 9, 2011 at 11:14 AM
1.Create a class called ReadFromFile. Create a file object and use the file object to create an input stream object to read the file ??employee.txt?? (use byte stream classes).If the file does not exists an exception should be thrown. An error message along with the path of the file(use the get... View Questions/Answers

How to create one xml file from existing xml file's body?  March 9, 2011 at 11:11 AM
Hi, i'm working with content optimization system.I want to know how we can take all data from an xml doc's body to develope another xml with that content.I'm using JDOm in my project.Could anybody help me to know about this as i'm a beginner in programming. ... View Questions/Answers

Advertisement

HTTP Status 500 -  March 9, 2011 at 11:08 AM
Hi, I am new to jsp... Installed Tomcat 5.5... Built in examples works good... I m trying to run simple jsp program which i wrote. i can see these errors... HTTP Status 500 - type Exception report message description The server encountered an internal... View Questions/Answers

strings  March 9, 2011 at 10:55 AM
1.Write a class Calculator, that will take two command line double arguments and â??+â??,â??-â??,â??/â?? or â??*â??. Signal an error if the user does not give the arguments. In the class declare two Double type instance variables. Based on arg3, perform the co... View Questions/Answers

Javascript  March 9, 2011 at 10:49 AM
in the web form the phonenumber field should be like this format xxx-xxx-xxxx, i want the code in javascript. as a function. ... View Questions/Answers

edit the flash video file using html5  March 9, 2011 at 10:46 AM
hi iam vivek i have a flash file i want to edit it with html5 please reply ... View Questions/Answers

how to develope an xml document with existing documents's body content?  March 9, 2011 at 10:43 AM
Hi, i'm working with content optimization system.I want to know how we can take all data from an xml doc's body to develope another xml with that content.I'm using JDOm in my project.Could anybody help me to know about this as i'm a beginner in programming. ... View Questions/Answers

installation error  March 9, 2011 at 9:58 AM
hi, m getting an error like " semicolon found in the selected path".how to resolve this error? during installation of jdk 1.6 ... View Questions/Answers

files  March 9, 2011 at 9:01 AM
1.Create a class StringDemo. Use the methods available in String object to display the mentioned output without using concat() method String s1 = â??Helloâ?? Output : hellO --- WOrldHellO For the above String s1, Display the same output using Chained methods ... View Questions/Answers

servelet connectivity with oracle using procedure  March 9, 2011 at 3:43 AM
kindly elaborate how servlet code connect to oracle br using procedure ... View Questions/Answers

getters and setters  March 9, 2011 at 3:36 AM
Create a Pet class that contains the following properties: A species (cat, dog, hamster, etc) an age, and an age_factor that represents the average lifespan of the animal compared to humans. (for example, the average lifespan of a hamster is about 2 years. the average human lives a little longer ... View Questions/Answers

in order to create jsp and servlet code to add,delete,edit,list of persons in eclipsejavaee  March 9, 2011 at 3:11 AM
in order to create jsp and servlet code what all files we need to create in eclipse --dynamic web project ... View Questions/Answers

bird feeder system code  March 9, 2011 at 2:27 AM
i want to know about "bird feeder a business solution system in java" please help me for details. how can develop this system please tell me. ... View Questions/Answers

bird feeder  March 9, 2011 at 2:25 AM
i want to know about "bird feeder a business solution system in java" please help me for details. how can develop this system please tell me. ... View Questions/Answers

java question  March 8, 2011 at 9:51 PM
i have a string like "My name is arvind.i live in bangalore.i study in college.".the problem is that i hav to break this string into three seperate lines... ... View Questions/Answers

To make java exe or runnable file  March 8, 2011 at 8:55 PM
Helo sir i make a java application.I need to help how run application direct in pc i.e how it packaged, .exe file or setup file. ... View Questions/Answers

Erron while  March 8, 2011 at 8:34 PM
Hi, i'm doing a project regarding xml. I want to extract all nodes from body of existing xml doc to make another xml with that data.Here is my coding and error showing on that coding.Could anybody help to know my error? coding: public class Test { public st... View Questions/Answers

MySql date problem  March 8, 2011 at 8:09 PM
with a mysql query, how can you get records of previous week dynamically, starting from sunday and ending on saturday? I don't want records from current date, just the previous week. ... View Questions/Answers

PHP  March 8, 2011 at 7:24 PM
1)Is 5&&6 equal to true? 2)Is there a difference between true and TRUE ? ... View Questions/Answers

Map java Object to database.  March 8, 2011 at 7:10 PM
How do you map Java Objects with Database tables? ... View Questions/Answers

delete() method of hibernate  March 8, 2011 at 6:58 PM
Define the use of delete() method of hibernate? Example. ... View Questions/Answers

Generator in Hibernate  March 8, 2011 at 6:12 PM
What is the generator in hibernate? ... View Questions/Answers

strings  March 8, 2011 at 6:00 PM
1.Create a class StringDemo. Use the methods available in String object to display the mentioned output without using concat() method String s1 = ??Hello?? Output : hellO --- WOrldHellO For the above String s1, Display the same output using Chained methods ... View Questions/Answers

files  March 8, 2011 at 5:58 PM
1.Create a class called ObjectTest. Use the ObjectInputStream and ObjectOutputStream classes to read and write from the file â??obj.txtâ??. Create variables and initialize them with the values to be written to the file. Once it is written, use ObjectInputStream to read those values from t... View Questions/Answers

Update value  March 8, 2011 at 5:52 PM
How to update value of database using hibernate ? ... View Questions/Answers

Simple JSP program  March 8, 2011 at 5:51 PM
create a simple jsp page in which number is to be entered by user in jsp page and submit button clicked.If number entered is greater then 100,then message box "no is greater" elseif less "no is lesser" ... View Questions/Answers

Pls help me...........  March 8, 2011 at 5:33 PM
how to use the text file as input to insert the values injdbc? ... View Questions/Answers

error in sample example  March 8, 2011 at 5:22 PM
hi can u please help me XmlBeanFactory class is deprecation in java 6.0 so, pls send advance version class ... View Questions/Answers

sir, how to convert excel file to csv file using java? please send me sample code.  March 8, 2011 at 5:08 PM
please send me sample code for converting excel file into csv file uisng java. ... View Questions/Answers

plz check my codings are correct or not...There is an error..i cant find it..  March 8, 2011 at 5:04 PM
import java.util.Scanner; public class Student { private String indexNo; private String gender; private char initial; private int mark1; private int mark2; private int mark3; private int max; public Student(String newIndexNo, String newGender, char newInitia... View Questions/Answers

Filenet P8 Migration  March 8, 2011 at 4:10 PM
how to migrate filnet IS to Filnet P8 ... View Questions/Answers

Feature of Hibernate3  March 8, 2011 at 3:33 PM
What is the main feature of Hibernate3? ... View Questions/Answers

Package  March 8, 2011 at 3:22 PM
Create a Package named com.example.code. Write few classes, interface and abstract classes. Now create a class names PackageDemo that uses the classes of this package from other package ... View Questions/Answers

Package  March 8, 2011 at 3:22 PM
Create a Package named com.example.code. Write few classes, interface and abstract classes. Now create a class names PackageDemo that uses the classes of this package from other package ... View Questions/Answers

Exception  March 8, 2011 at 3:18 PM
1.Create a class Assertion. Create an assertion that passes or fails based on whether a command line argument has been provided. ... View Questions/Answers

Exception  March 8, 2011 at 3:15 PM
1.Create a class Errorhandle3. Write code that demonstrates how handle and declare rules are different for runtime exceptions and checked exceptions. ... View Questions/Answers

Core Java  March 8, 2011 at 3:14 PM
Write a program to accept the given date in DD/MM/YYYY format and convert the same based on user selection mentioned below? 1.MM/DD/YYYY format 2.YYYYMMDD format... ... View Questions/Answers

Presistace classes in hibernate  March 8, 2011 at 3:12 PM
Explain the persistence class in hibernate? ... View Questions/Answers

Core Java  March 8, 2011 at 3:12 PM
Write a program to read the below data from a file and check whether the period is partial or full month? 03/01/2011 ?? 03/28/2011 03/01/2011 ?? 03/31/2011 02/01/2011 ?? 02/28/2011 02/01/2011 ?? 03/01/2011 ... View Questions/Answers

Core Java  March 8, 2011 at 3:09 PM
Write a Program to add given number of days to the current system date and display the same? ... View Questions/Answers

php  March 8, 2011 at 2:53 PM
what is the script? ... View Questions/Answers

jsp  March 8, 2011 at 2:30 PM
Dear deepak, wat is the purpose of converting jsp into servlet and how the process takes place.. with regards, praveen ... View Questions/Answers

Ajax Dropdown  March 8, 2011 at 1:51 PM
hi I have One Dropdown that contains 2 options assume A and B,if i select A option then samepage one more Dropdown is their it should display values in german language using DWRUtil Parameter values in ajax. Only display should be in german but, values internally work same ... View Questions/Answers

calender  March 8, 2011 at 1:40 PM
to calculate date of expiry if date of manufacture is given,considering it may be leap year or may not. ... View Questions/Answers

Action and ActionSupport  March 8, 2011 at 1:05 PM
Difference between Action and ActionSupport ? ... View Questions/Answers

Hibernate Query Language  March 8, 2011 at 12:54 PM
Explain Hibernate Query Language(HQL) of Hibernate? ... View Questions/Answers

Code  March 8, 2011 at 12:47 PM
code for connecting c lang to database.. ... View Questions/Answers

intercepter  March 8, 2011 at 12:45 PM
Explain interceptors? Which interceptor is responsible for setting action's JavaBean properties? ... View Questions/Answers

While creating a jar how to add MySQL database to project  March 8, 2011 at 12:44 PM
Hi, Please tell me how to attach MySQL database to the Java project while building a jar or their is any other process? ... View Questions/Answers

how to set values in object using java and what are the ways?  March 8, 2011 at 12:41 PM
How to set values in object using java ?what are the ways ... View Questions/Answers

Not able to display jtable at runtime  March 8, 2011 at 12:01 PM
Hello, can anyone please help me. I am trying to create a dynamic table with checkboxes. Data are accessed from database. But it is not creating the table at runtime. It retrieves data from database properly. But I am not getting why it is not creating the table in a specified Panel (panT... View Questions/Answers

query regarding auto increment primary key  March 8, 2011 at 12:00 PM
i want to use s1,s2.... as my auto increment primary key.cant i do this in mysql? ... View Questions/Answers

Dirty checking feature of hibernate.  March 8, 2011 at 11:58 AM
What is the dirty checking feature of Hibernate? ... View Questions/Answers

Interface  March 8, 2011 at 11:55 AM
1.Create an interface names ShapeInterface that has two methods and one constant and an abstract class named ShapeAbstract that has two instance variable, one abstract and one non-abstract method. Create a concrete class a.Rectangle that uses the interface b.Circle that uses the interface and abs... View Questions/Answers

Interface  March 8, 2011 at 11:55 AM
1.Create an interface names ShapeInterface that has two methods and one constant and an abstract class named ShapeAbstract that has two instance variable, one abstract and one non-abstract method. Create a concrete class a.Rectangle that uses the interface b.Circle that uses the interface and abs... View Questions/Answers

jsp version?  March 8, 2011 at 11:50 AM
what is the latest version of jsp? ... View Questions/Answers

php,javascript,html  March 8, 2011 at 11:49 AM
Hi, thank u for answered the previous question. one more question: when i register the student details, unique register number should be created and incresed automatically for every student based on the submit button. ... View Questions/Answers

Produces XML file but format not correct for storing data using JSP and XML  March 8, 2011 at 11:46 AM
hii I have created a project using JSP and XML as database to store data entered by user in XML file ,It stores data entered in XML file but not in proper format .The root element (which is unique) creates again and again when data is entered in XML file. XML file created : ... View Questions/Answers

struts.xml in struts2  March 8, 2011 at 11:44 AM
What is the struts.xml file ? Who it is loads? ... View Questions/Answers

Session Interface in hibernate.  March 8, 2011 at 11:22 AM
Define the session interface? ... View Questions/Answers

Session Factory  March 8, 2011 at 11:02 AM
Define the session factory interface in hibernate? ... View Questions/Answers

project in JSP and XML(to store data)  March 8, 2011 at 10:59 AM
I need to complete an assignment in JSP and using XML as Database ,Please help me to complete this assignment.Ill be very very thankful to you,i am new to JSP.Please provide full code if possible,ineed to understand this.making this project from last2 weeks but still not worked.If not full code p... View Questions/Answers

java.lang.ClassNotFoundException: com.mysql.jdbc.Driver  March 8, 2011 at 10:56 AM
private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { try { Class<?> forName = Class.forName("com.mysql.jdbc.Driver"); Connection conn = DriverManager.getConnection("jdbc:mysql://localho... View Questions/Answers

how to insert data from netbeans into databse  March 8, 2011 at 10:47 AM
how to insert data from netbeans into databse ... View Questions/Answers

hibernate image Upload  March 8, 2011 at 10:36 AM
Sir, I had posted question regarding upload image, th answer you had given is using SQL, but I am using Hibernate to insert data in the same table where I want to insert image. Plz hlp me. Thanks ... View Questions/Answers

how to give link from jsp to jsp page  March 8, 2011 at 10:16 AM
hi this is my following code plz tally this first. function getButtonValues(str,id) { alert("getButtonValues"); if(str=='delete') { alert("in delete" +id); document.forms[0].action="Delete?str="+str+"&id="+id; } if(str=='modify') ... View Questions/Answers

how to give link from jsp to jsp page  March 8, 2011 at 10:15 AM
hi this is my following code plz tally this first. function getButtonValues(str,id) { alert("getButtonValues"); if(str=='delete') { alert("in delete" +id); document.forms[0].action="Delete?str="+str+"&id="+id; } if(str=='modify') ... View Questions/Answers

java  March 8, 2011 at 9:39 AM
what is java ... View Questions/Answers

retrive data from database?  March 8, 2011 at 9:30 AM
hellow i have a database sheet name as db1. it's contain sixty(60) sn,name ,rollno(primary key),father's name etc.. now i want retrive sn,roll no and name and textbox like as |------------------------| |sn.|rollno|name|text box| | | | | | | | | | ... View Questions/Answers

interview questions  March 8, 2011 at 8:13 AM
Tell us about a situation where you had to solve a difficult problem. What did you do? What is your typical way of dealing with conflict? Give us an example. Tell us about a problem that you??ve solved in a unique or unusual way. What was the outcome?... View Questions/Answers

interview questions  March 8, 2011 at 8:10 AM
Tell us about a situation where you had to solve a difficult problem. What did you do? What is your typical way of dealing with conflict? Give us an example. Tell us about a problem that you??ve solved in a unique or unusual way. What was the outcome?... View Questions/Answers

interview questions  March 8, 2011 at 8:09 AM
Tell us about a situation where you had to solve a difficult problem. What did you do? What is your typical way of dealing with conflict? Give us an example. Tell us about a problem that you??ve solved in a unique or unusual way. What was the outcome?... View Questions/Answers

servlet  March 8, 2011 at 8:08 AM
plz can anyone give me the link of javax library jar file. i badly need that. thanks in advance ... View Questions/Answers

interview questions  March 8, 2011 at 8:08 AM
Tell us about a situation where you had to solve a difficult problem. What did you do? What is your typical way of dealing with conflict? Give us an example. Tell us about a problem that youâ??ve solved in a unique or unusual way. What was the out... View Questions/Answers

constructor or object  March 8, 2011 at 2:35 AM
object or construct which create first? ... View Questions/Answers

Need to access data from another application  March 8, 2011 at 12:11 AM
Hi Tech masters, I want to develop a reporting application.for that I need to access data from a third party application. I want to access data from a software called service desk.and then use this data to prepare a report. How to go for this. Please reply. Thanx i... View Questions/Answers

how i want to create a coding by this question?  March 8, 2011 at 12:06 AM
Design and write a class named Person and its two subclasses named Student and Employee. Make Lecturer and Admin subclasses of Employee. A person has a name, address, phone number and email address. A student has a matric number and status (year 1, year 2 or year 3). An employee has a dep... View Questions/Answers

html  March 7, 2011 at 10:41 PM
For what is used HTML? ... View Questions/Answers

java  March 7, 2011 at 10:15 PM
how can i make netbeans project into executable file? ... View Questions/Answers

java  March 7, 2011 at 8:48 PM
Write a complete program in a single class called RootMaker, which reads in an integer value from the keyboard, and places it in a variable, say num. If num is non-negative, the program should print the square root of num. However, if num is negative, the program should then print the phrase "neg... View Questions/Answers

JavaSevlets  March 7, 2011 at 7:50 PM
Gud Day! pliz how can i link to a java page from a jsp page using anchor tags.I have a jsp file called welcome.jsp i want to link it to a java page called Bills.java using an anchor tag, So that when ever i click the word "view bills" it opens the bills table created in bills.java.Help me pliz!... View Questions/Answers

JavaSevlets  March 7, 2011 at 7:46 PM
Gud Day! pliz how can i link to a java page from a jsp page using anchor tags.I have a jsp file called welcome.jsp i want to link it to a java page called Bills.java using an anchor tag, So that when ever i click the word "view bills" it opens the bills table created in bills.java.Help me pliz!... View Questions/Answers

connectivity  March 7, 2011 at 7:36 PM
fetching the value of any form into the database?? ... View Questions/Answers

How we learn java  March 7, 2011 at 6:36 PM
what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type? ... View Questions/Answers

How we learn java  March 7, 2011 at 6:36 PM
what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type? ... View Questions/Answers

How we learn java  March 7, 2011 at 6:36 PM
what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type? ... View Questions/Answers

How we learn java  March 7, 2011 at 6:36 PM
what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type? ... View Questions/Answers

How we learn java  March 7, 2011 at 6:36 PM
what is class in java? what is object in java? what is interface in java and use? what is inheritence and its type? ... View Questions/Answers

use of return statement  March 7, 2011 at 5:42 PM
what is the use of return statement? ... View Questions/Answers

virtul  March 7, 2011 at 5:40 PM
what is virtul? ... View Questions/Answers

prepared statement  March 7, 2011 at 5:32 PM
plese give me a code that have preparedstatement interface and uses a select query having condition date="s"; where s is the date, but this date parameter passed as the string. ... View Questions/Answers

/here my file nameis sample.xls and this file contain some blanks cells how to read and how to print this blank cell as blank in console public ArrayList readCSV  March 7, 2011 at 5:18 PM
//here my file nameis sample.xls and this file contain some blanks cells how to read and how to print this blank cell as blank in console public ArrayList readCSV(File fileName) { ArrayList cellVectorHolder = new ArrayList(); try{ FileInputStream myIn... View Questions/Answers

exception  March 7, 2011 at 5:17 PM
1.Create a class Errorhandle1. `Write code that deliberately throws the following exceptions, without using the ??throw?? keyword : ClassCastException NullPointerException ArrayIndexOutOfBoundsException StackOverFlowException AssertionError NumberFormatException ... View Questions/Answers

how to import values from database to the drop down box  March 7, 2011 at 5:17 PM
hi iam final year student in my project i will insert all employee details in search employee page i kept a drop down box for employee Ids i want all employee IDs will display in the drop down box please help me with the code ... View Questions/Answers

java  March 7, 2011 at 5:14 PM
1.Create a class Errorhandle1. Write code that deliberately throws the following exceptions, without using the â??throwâ?? keyword ClassCastException NullPointerException ArrayIndexOutOfBoundsException StackOverFlowException AssertionError NumberFormatException ... View Questions/Answers

how to append data to XML file in proper format using JSP  March 7, 2011 at 4:57 PM
hello i was appending my XML file to add more data entered by user in JSP page.But not getting XML file in proper format as XML rules.lease help me to get XML file in proper format.I am using Jdeveloper. My code: <%@page import="java.io.*,org.w3c.dom.*,javax.xml... View Questions/Answers

how set data in a dialog  March 7, 2011 at 4:46 PM
Button button = (Button) findViewById(R.id.button1); button.setOnClickListener(new View.OnClickListener() { public void onClick(View v) { setContentView(R.layout.yourorderdialog); AlertDialog.Builder builder =new AlertDial... View Questions/Answers

Switch databases  March 7, 2011 at 4:38 PM
How do you inter-change between relational databases without code changes? ... View Questions/Answers

Java  March 7, 2011 at 4:35 PM
can we write doget() and service() in same servlet? ... View Questions/Answers

DMCA.com