Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

Is catch(){} block synchronized?  March 5, 2011 at 11:25 PM
The code in catch(){} block behaves synchronized. In one block, if I do {write to file1; write to file2}, and in another {write to file2; write to file1}, they deadlock. Is this implicit sync defined in the language spec? ... View Questions/Answers

Java i/o opearations  March 5, 2011 at 9:18 PM
"FOLLOWING IS MY LAST QUESTION ON JAVA I/O OPERATIONS the ANSWER WAS POSTED THANKS FOR POSTING IT WORKS WELL WITH BUFFERED STREAM BUT IT IS NOT WORKING WELL WITH RANDOM ACCESS FILE" i.e.,how to WRITE integer data to the file using random access file. ""how to write integer data to a file ... View Questions/Answers

java  March 5, 2011 at 8:40 PM
what do you mean by static in java? ... View Questions/Answers

Advertisement

How to store data entered in JSP page by a user in XML file & later retrieval of data using id at other page  March 5, 2011 at 8:09 PM
I have made a form in JSP having emp id, projectname and emp name.I want to store data related to employee in xml file.How can i store data entered by user in XML file and later retrieve data in another jsp page using retrieve submit button.Please tell step by st... View Questions/Answers

printing hollow square  March 5, 2011 at 8:04 PM
Write an application (PrintingSquares.java) that prompts the user to enter the size of the side of a square, then displays a hollow square of that size made of asterisks. Your program should work for squares of all side lengths between 1 and 20. For example, if a user enters 5 you should display ... View Questions/Answers

help me..  March 5, 2011 at 7:59 PM
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 department,... View Questions/Answers

help me..  March 5, 2011 at 7:09 PM
Write a program that inputs four words and them displays all possible permutations of the words. So, for example, if the words mad, dog, bites and man are entered, then the following are output : man bites mad dog mad man bites dog mad bites man dog etc... ... View Questions/Answers

java/j2ee source code  March 5, 2011 at 7:08 PM
java/j2ee source code for online food purchasing service with my sql database? ... View Questions/Answers

how to display?  March 5, 2011 at 6:18 PM
How to write a select query for displaying data where i have author as multivalued attribute? ... View Questions/Answers

how to display?  March 5, 2011 at 6:18 PM
How to write a select query for displaying data where i have author as multivalued attribute? ... View Questions/Answers

how to display?  March 5, 2011 at 6:18 PM
How to write a select query for displaying data where i have author as multivalued attribute? ... View Questions/Answers

non static variable cannot be referenced from static context  March 5, 2011 at 4:52 PM
public class Add{ int foo=7; int bar=8; public int add(int x,int y){ int z=x+y; System.out.println(z); return z; }//add public static void main(String []s){ Add a1=new Add(); a1.add(7,8); Add a2=new Add(); a2.add(foo,bar)... View Questions/Answers

non static variable cannot be referenced from static context  March 5, 2011 at 4:49 PM
public class Add{ int foo=7; int bar=8; public int add(int x,int y){ int z=x+y; System.out.println(z); return z; }//add public static void main(String []s){ Add a1=new Add(); a1.add(7,8); Add a2=new Add(); a2.add(foo,bar)... View Questions/Answers

Handle Null Pointer Exception while text file upload  March 5, 2011 at 4:00 PM
I want the code for handling null pointer exception in jsp page. That is I need an error page for null pointer exception. The cause for null pointer exception is while uploading text file into database if a different text file is selectedi.e...,my db contents are olnumber,newnumber,startdate,endd... View Questions/Answers

portability vs platform independent  March 5, 2011 at 3:51 PM
sir, pls tell me 1.the differences between platform independent and portability related to java technology 2.how java provides security 3.how can i prove servlet is a single instance multiple thread based serverside technology? ... View Questions/Answers

How to play radio station on iPhone  March 5, 2011 at 3:32 PM
how to play radio station on iphone? ... View Questions/Answers

java  March 5, 2011 at 3:02 PM
If there is Emp name, Emp sal, ..Emp id, In those value How to sort the Emp sal value? what data structure we use? ... View Questions/Answers

java  March 5, 2011 at 2:59 PM
In the Webpage if we click submit Button What happen? Explain Technically? ... View Questions/Answers

sql  March 5, 2011 at 1:23 PM
how to get first row in sql with using where condition in sql? how to get last row in sql with using where condition in sql? ... View Questions/Answers

SQUANDER CRPTOGRAPHY  March 5, 2011 at 1:21 PM
In Dorothy Sayers' novel "Have His Carcass", Lord Peter Wimsey describes a cryptography technique that is simple for encoding and decoding, yet relatively hard to crack. Your job is to implement this technique. Here's how it works, in Sayers' (edited) words: You choose a key-word of six letters o... View Questions/Answers

SQUANDER CRPTOGRAPHY  March 5, 2011 at 1:21 PM
In Dorothy Sayers' novel "Have His Carcass", Lord Peter Wimsey describes a cryptography technique that is simple for encoding and decoding, yet relatively hard to crack. Your job is to implement this technique. Here's how it works, in Sayers' (edited) words: You choose a key-word of six letters o... View Questions/Answers

TDD  March 5, 2011 at 12:57 PM
Q: Use TDD to write the following class, or classes: Single linked circular list. With methods: Insert method will insert a new node following the node passed as a parameter to the method. Delete the node passed as a parameter Get the next node Get the first node. Create an empty list... View Questions/Answers

Attachement in Web Service + EJB 3 + Jboss  March 5, 2011 at 11:47 AM
How to send attachements in Web Service using EJB3 with JBoss Application Server? ... View Questions/Answers

Java basic  March 5, 2011 at 10:53 AM
How can I Use Eclipse to create a project and write a hello world java application ? ... View Questions/Answers

PHP and jQuery Tutorial  March 5, 2011 at 10:46 AM
Hi, I have to develop web application using PHP programming language. In my program I have to add Ajax support with the help of jQuery. Let's know which Ajax framework is very good? Shall I learn and use jQuery for creating my application? Or suggest some else to my client? <... View Questions/Answers

input using scanner and add/sub/mul/div of a matrix  March 5, 2011 at 10:16 AM
hiiii...... performe matrix add/sub/mul/div using scanner. ... View Questions/Answers

job submission in cloud computing using gui representation  March 5, 2011 at 10:10 AM
job submission in grid computing using gui representation ... View Questions/Answers

job submission in cloud computing  March 5, 2011 at 10:10 AM
job submission in grid computing using gui representation ... View Questions/Answers

job submission in cloud computing  March 5, 2011 at 10:09 AM
job submission in grid computing ... View Questions/Answers

job submission in cloud computing  March 5, 2011 at 10:08 AM
job submission in cloud computing ... View Questions/Answers

implementation of two level scheduler in cloud computing environment  March 5, 2011 at 10:05 AM
job submission in cloud computing ... View Questions/Answers

dom to xml string  March 5, 2011 at 9:40 AM
Hi, I am writing a program in java that reads the xml file from a webservice. The Document object is returned in my program. I have save the dom document into xml file. How to convert dom to xml string and then save into a file? Thanks ... View Questions/Answers

PHP and MySQL BETWEEN dates with different years  March 5, 2011 at 9:10 AM
I have a database which holds a bunch of events. Each event has a start date and an end date, so they should only show on the site when the date chosen falls between those dates. I thought it made sense to make use of the SQL BETWEEN statement, but it does not work. When a user ch... View Questions/Answers

Java App - Add, Delete, Reorder elements of the buttons  March 5, 2011 at 8:57 AM
Hello, I'm developing a Java application. I created this interface with MockupScreens. Please look at these pictures. At first time, there's only one element, the user have to enter informations (title and description) then he starts adding elements as he needs. He ... View Questions/Answers

sql  March 5, 2011 at 8:54 AM
returning value from a store procedure in sql with example ... View Questions/Answers

search  March 5, 2011 at 8:53 AM
how to develop search box and how to retrive data from database.. ... View Questions/Answers

Is it modify Object data? Generally Object data can't modify............but in this program it modifies.......... Why?  March 5, 2011 at 1:07 AM
import java.io.*; public class Conversions { public static void main(String args[]) throws Exception { int a,b; DataInputStream dis=new DataInputStream(System.in); //String to Fundamental conversion System.out.print("Enter any ... View Questions/Answers

how to read values from java in xml?  March 4, 2011 at 10:13 PM
how to read values from java in xml? ... View Questions/Answers

expression and flow control  March 4, 2011 at 9:17 PM
write the program calculate and print the bill of communication telephone mobile company the company offer 2 types of services is regular (r) and premium (p) the rates are computed as follow - Regular services $ 10.00 plus first 50 minutes are free .Charges over 50 minutes are $ 0.20 per mi... View Questions/Answers

multivalued attribute?  March 4, 2011 at 8:16 PM
edit.jsp <% String accno=request.getParameter("acc"); try { Class.forName("sun.jdbc.odbc.JdbcOdbcDriver"); java.sql.Connection con=java.sql.DriverManager.getConnection("jdbc:odbc:dms","smartlib","smartlib"); ... View Questions/Answers

multivalued attribute?  March 4, 2011 at 8:16 PM
I have a problem in editing the database through form because of multivalued attribute it is creating the error and also how to write code for displaying the data when there is multivalued attribute? edit.html edit.jsp <% String accno=request.getParameter(&qu... View Questions/Answers

how to display?  March 4, 2011 at 8:10 PM
I have to write a code for searcing books in library and i have written but it is not displaying the result.I don't know where i have gone wrong.Also i want to know if there is any better idea then this and what type of validations i can give.I have written code as shown below. search.... View Questions/Answers

How to put text file numbers to array and check the position of numbers?  March 4, 2011 at 6:08 PM
I have numbers in text file data.txt 12 9 8 3 1 ... View Questions/Answers

sql q's  March 4, 2011 at 5:49 PM
Find out the job that was filled in the first half of 1983 and same job that was filled during the same period on 1984? Display the department where there are no employees? Display those emp who joined the company before 15th of the month? For the above Q's please respond ... View Questions/Answers

Converting XML to string  March 4, 2011 at 5:31 PM
Hi Friends, I had an requirement in which a java program receives an xml messages from external web application such as (jsp, php) and then it converts the received xml message into a string. could some one suggest how can I go about it or could some one provide me with sample cod... View Questions/Answers

how to add panel inside frame?  March 4, 2011 at 4:27 PM
I prepared a Frame with two labels and text fields and one button.when ever user clicks on the button two text fields should be appear(those text fields should be added to the panel) .I want to add panel after those components.but while compilation its showing errors.how to write the logic? ... View Questions/Answers

Jcombo box  March 4, 2011 at 4:27 PM
I want To add ittem in JComboBox which is stored in Mysql Database. Database Column name -Course Items -MBA,MCA,MBA IT,MBA FINANCE I want Load Database records in to my JComboBox. ... View Questions/Answers

hibernate insert image  March 4, 2011 at 4:02 PM
Sir, Today I hadposted 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

insert image using hibernate  March 4, 2011 at 3:59 PM
Sir, Today I hadposted 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

retrive data from oracle to jsp  March 4, 2011 at 3:26 PM
i am a beginer in jsp so please help me out..... in file create project i am entering proj details such as id name cost and manager name and storing it in the data base. in search proj fiel if user enters any one of the feild such as id name cost and manager the full details of the project should... View Questions/Answers

UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath  March 4, 2011 at 3:24 PM
HI, What is the solution of UITableView dataSource must return a cell from tableView:cellForRowAtIndexPath error? Thanks ... View Questions/Answers

dual control  March 4, 2011 at 3:04 PM
how to get two controls on a single program at the same time ... View Questions/Answers

upload image using JSP Hibernate  March 4, 2011 at 2:51 PM
sir, I want to take image from user and save to database(MYSQL) using Hibernate and JSP Thanks in advance. ... View Questions/Answers

here we r getting the problem with ut data and get data????????????  March 4, 2011 at 2:26 PM
private ArrayList keys; private ArrayList values; public Menus() { keys = new ArrayList(); values = new ArrayList(); } public java.util.Set keySet() { return new TreeSet(keys); } Hashtable<String,String> hash = new Hashtab... View Questions/Answers

java i/o operations  March 4, 2011 at 2:06 PM
how to write integer data to a file in java using random access file object or file writer or data outputstream i have already tried the write and writeInt methods....plz help ... View Questions/Answers

ExecuteScalar in java  March 4, 2011 at 1:58 PM
Hello Greetings I am developing web application in java using JSP and servlets. I would like to know one thing that is there any way to extract one value from database just like executescalar in .NET. Ex. select count(*) from userdetails i want to get count without using resultset... View Questions/Answers

array ADT  March 4, 2011 at 1:21 PM
Write a program using array_ADT to retrieve a list of elements from a file ... View Questions/Answers

array ADT  March 4, 2011 at 1:16 PM
Write a program using array_ADT to retrieve a list of elements from a file ... View Questions/Answers

take variables in text file and run in java  March 4, 2011 at 1:08 PM
I have a text file which have variables 17 10 23 39 13 33 How to take "17"in java code? ... View Questions/Answers

array ADT  March 4, 2011 at 1:03 PM
Write a program using array_ADT to retrieve a list of URLs from a file. In your program take an array index as the input and delete the entry corresponding to that index. ... View Questions/Answers

json  March 4, 2011 at 12:23 PM
how to get data in json object from database ... View Questions/Answers

jsp program related  March 4, 2011 at 11:57 AM
how to run jsp program ... View Questions/Answers

how to set size of button,textfield.  March 4, 2011 at 11:52 AM
how we set size of button textfield etc and reduce problem when click maximize button the text or textfield get large how to set as a preferd size in the panel or frame .when we click maximize button not effect on text or button to their of size the set on the prefered size ... View Questions/Answers

LOGIN PAGE  March 4, 2011 at 11:45 AM
A java program with "login" as title,menus added, and a text field asking for firstname, lastname, and displaying current date and time ... View Questions/Answers

Android  March 4, 2011 at 11:02 AM
how to read input values from a dialog box to hash table and put those values to another dialog box in android???? ... View Questions/Answers

URGENT !!!!! Any PERL language Expert .  March 4, 2011 at 10:51 AM
I have input 50 amino acid sequences in NetPhos 2.0 server to know position of phosphorylation sites. I want to extract or parse the position of phosphorylated serine, tyrosine and threonine residues from result table of NetPhos 2.0 server (ExPASy tool) in MS EXCEL sheet. Can this be d... View Questions/Answers

Mobile Communication  March 4, 2011 at 10:42 AM
how two mobiles communicates? ... View Questions/Answers

error in driver  March 4, 2011 at 10:27 AM
i have done connection settings for oraclethin driver in netbeans ide 6.9.1. and i was able to view tables of my database.but when i am trying to access tables from my java class i was getting error in the driver.could you please help me. ... View Questions/Answers

TextField on the Image  March 3, 2011 at 11:47 PM
how we set label or textfield etc. on the Image ... View Questions/Answers

javascript validation  March 3, 2011 at 11:42 PM
How to do javascript validations to check whether the entered primary key is present in the database or not .Iam using jsp language ... View Questions/Answers

javascript validation  March 3, 2011 at 11:42 PM
How to do javascript validations to check whether the entered primary key is present in the database or not .Iam using jsp language ... View Questions/Answers

help with JDateChooser to insert date into sql  March 3, 2011 at 11:32 PM
TextField3 = new com.toedter.calendar.JDateChooser(); TextField3.setDateFormatString("MM-d-y‚?¶ private void buttonActionPerformed(java.awt.event.Act‚?¶ evt) { try{ DateFormat df = new SimpleDateFormat("MM/dd/yyyy"); String value1=TextField1.getText(); String value2=TextField2.getText(); ... View Questions/Answers

JavaBean tutorials  March 3, 2011 at 10:08 PM
JavaBean tutorials ... View Questions/Answers

java script  March 3, 2011 at 9:29 PM
how to write a Java script program to enter number in two text fields and then automatically display the total in another text field.. ... View Questions/Answers

multivalued attribute  March 3, 2011 at 9:22 PM
I have a author as multivalued attribute and i have inserted values for it in database but now how to insert values in the database through form .I have written query as shown below and iam getting error . String query4="INSERT INTO author_det(accno,isbn,author) VALUES ('"+accno+"','"+is... View Questions/Answers

what is the difference between pop and oop  March 3, 2011 at 9:12 PM
what is the difference between pop and oop? ... View Questions/Answers

program for default constructor in java  March 3, 2011 at 8:55 PM
class Box { double l; double b; double h; Box() { l=2.3; b=3.4; h=4.5; ... View Questions/Answers

please tell me  March 3, 2011 at 7:48 PM
i have created one table,when i close and again login, table name will be there, but its content not displayed, showing as no rows selected, please tell me the reason ... View Questions/Answers

Wt is easy way to learn UML  March 3, 2011 at 7:31 PM
Hello Friends, Please guide me,How to learn UML in easy way and efficent way. Thanks in Adavance Thanks, Abiram ... View Questions/Answers

How to trim string till indexof the string  March 3, 2011 at 6:22 PM
how to trim string till indexof the string ... View Questions/Answers

loyality application  March 3, 2011 at 6:12 PM
Loyalty Application XYZ Bank is a leading public sector bank in India and has recently launched a credit card in alliance with Visa. The credit card industry in India is currently cluttered with many cards and the senior management wanted to create an attractive Loyalty Application for its custom... View Questions/Answers

logistic case study  March 3, 2011 at 6:11 PM
Logistics Case ABC is an upcoming logistics company .The company offers air cargo services from Bangalore Airport office to 10 international locations and vice versa. They can handle cargo up to 40 kilos in a single consignment. The company offers three kinds of services-normal, express & pla... View Questions/Answers

ipms case study  March 3, 2011 at 6:10 PM
IPMS Case Study ABC company is a small software company. Due to a good delivery track record, the company started to get more projects. The CEO felt the need for an in house project management tool. This would enable the organization comply SDLC process and scale up. Most of the clients of ABC co... View Questions/Answers

dth case study  March 3, 2011 at 6:09 PM
DTH Case Study BNM Corp is a new player in the DTH (Direct to Home) satellite TV business in India. It has a sister concern BNV Corp which is a broadcaster and owns few channels. BNM corp entered into the DTH space to complement the operations of its sister concern and to get a stronghold on the ... View Questions/Answers

computer manufacture case study  March 3, 2011 at 6:09 PM
Computer Manufacturer Case Study BNM is an upcoming computer manufacturer. The company was making a mark in the desktop and laptop segment due to aggressive pricing and good products. The sales of the company increased rapidly and then the company decided to implement a software solution to impro... View Questions/Answers

caller tunes case study  March 3, 2011 at 6:08 PM
Caller Tune Case Study ABC Corp is a new telecommunication player in India. The company was a player in the GSM space and had a pan India License. The company provided very good service and as a result added millions of customers in a short span. As a value add, the company introduced ‚??caller t... View Questions/Answers

broad band case study  March 3, 2011 at 6:07 PM
Broadband Case Study LKV Company is a new firm which won a Pan India broadband spectrum in the recently concluded broadband spectrum auction. The Company decided that the market roll out will be done in a phased manner. The company decided to set up the I.T infrastructure and implement a software... View Questions/Answers

case study  March 3, 2011 at 6:05 PM
Chocolate Manufacturer Case Study CDA Company is in the business of manufacturing chocolates. The company delivers various chocolate products like- chocolate bars ,chocolate powder ,chocolate gift box and chocolate tins/packets. Their main product is the chocolate bar which comes in various categ... View Questions/Answers

please help me  March 3, 2011 at 5:47 PM
interface Test1 { String toString(); } public class Test { public static void main(String[] args) { System.out.println(new Test1() { public String toString() { return "test"; } }); }} ... View Questions/Answers

Second level cache  March 3, 2011 at 4:53 PM
Hi, I have been asked one question which I have no idea about. It's like I have enabled second level caching and the data has changed behind the scene by some other application. How do I detect the changes and how do I refresh( reload) my second level cache. Please advise, and ignore my poor unde... View Questions/Answers

Servlet error Messsage  March 3, 2011 at 4:40 PM
Sir, I have a login jsp page, after checking input in servlet, I want to display error message from servlet to the same jsp login page from which I had taken login info. thanks in advance. ... View Questions/Answers

stop word removal from text file  March 3, 2011 at 4:08 PM
i need java source code for stop word removal from a text file ... View Questions/Answers

wnidows button  March 3, 2011 at 2:58 PM
How to handle windows back and forward button in struts applications, without using java script? ... View Questions/Answers

hibernate  March 3, 2011 at 2:28 PM
can any one one explain what is hibernate ? ... View Questions/Answers

how to retrieve data from database using gwt  March 3, 2011 at 2:24 PM
how to retrieve data from database using gwt ... View Questions/Answers

how to retrieve data from database using gwt  March 3, 2011 at 2:24 PM
how to retrieve data from database using gwt ... View Questions/Answers

coding of button  March 3, 2011 at 2:10 PM
What is code of fetching the value of button in a textbox using javascript? ... View Questions/Answers

please help me.  March 3, 2011 at 2:01 PM
Please send me the validation of this below link. the link is http://www.roseindia.net/answers/viewqa/JSP-Servlet/9584-JSP-Servlet-Search-and-Edit.html Thanks Trinath ... View Questions/Answers

when refreshing the page the data is stored in data base again  March 3, 2011 at 1:26 PM
Hi, In my application, I am adding form data in database on click of submit button.But the problem is, when user refreshes the page, the data added one more time into the database and so on... What can be the solution for this, please some body give me good link for this problem.... View Questions/Answers

Please explain the logic....  March 3, 2011 at 1:17 PM
class A1 { } class B extends A1 { } public class ComingThru { static String s = "-"; public static void main(String[] args) { A1[] aa = new A1[2]; B[] ba = new B[2]; sifter(aa); sifter(ba); sifter(7); System.out.printl... View Questions/Answers

DMCA.com