Home Answers Questions Question and Answers


 
 

Latest Programming Questions askedAsk your question?

constructor  April 18, 2011 at 12:02 PM
what happen in the background while creating the Object in Java? ... View Questions/Answers

restarting  April 18, 2011 at 11:38 AM
Lucy wants to run the CORBA application on different machines. She tries restarting the server but is unable to do so. What can be the possible reason for the server not getting started? ... View Questions/Answers

restarting  April 18, 2011 at 11:38 AM
Lucy wants to run the CORBA application on different machines. She tries restarting the server but is unable to do so. What can be the possible reason for the server not getting started? ... View Questions/Answers

Advertisement

idl  April 18, 2011 at 11:36 AM
The developer writes the following code in an IDL file and then compiles with idlj compiler: interface Calculate { string compute(); void shutdown(); }; interface Time { string comp(outin long var); }; Predict the output of the preceding code snippet. ... View Questions/Answers

corba  April 18, 2011 at 11:35 AM
Lucy decides to convert the RMI application to CORBA to make it portable across different platforms. The developer creates a CORBA application for maintaining employee information across different branches of the company. The server and client applications are developed on a Java p... View Questions/Answers

code  April 18, 2011 at 11:33 AM
After creating the server, the developer writes the following code to create the RMI client on the local machine: import java.rmi.*; public class HelloClient { public static void main(String args[]) { try { Hello h = (Hello)Naming.lookup("server"); System.out.println("Client: Hello!"); Sy... View Questions/Answers

distributed  April 18, 2011 at 11:32 AM
Lucy decides to distribute the load of the server by creating a distributed application. Lucy has to maintain two servers, one for storing the database and the other for storing the books in the .pdf format. The application should enable an employee to access the database and do... View Questions/Answers

adress  April 18, 2011 at 11:29 AM
Lucy gives the following code to her team to get the address of the server in a network-based application: import java.net.*; public class { public static void main(String args[]) { try{ InetAddress add = InetAddress.getInetAddress("192.168.0.70"); System.out.println(add.toString()); }cat... View Questions/Answers

server  April 18, 2011 at 11:28 AM
The developer observes that some information is not delivered at the client end. He tries using the following code to create a reliable connection between server and client: public Server() { try { serverSocket = new ServerSocket(1001); System.out.println(se... View Questions/Answers

connection  April 18, 2011 at 11:25 AM
The developer writes the following code to establish the connection with the available port on the host machine: import java.net.*; public class AddTest{ public static void main(String args[]) { try{ DatagramSocket socket = new DatagramSocket(); if(socket.i... View Questions/Answers

javabean  April 18, 2011 at 11:23 AM
The developer has to perform a task, which will keep a track of the number of users connected to a database. He/she wants to perform the task to avoid any invalid access to the database. He/she has to decide the type of JavaBean which would enable him/her to perform the task in a hidden manner. H... View Questions/Answers

Authentication  April 18, 2011 at 11:21 AM
The developer has to create a JavaBean for authenticating an employee. The developer creates an event class with name LoginEvent and an interface with name LoginListener. The LoginListner interface contains a method ValidateLogin(). The developer writes the follo... View Questions/Answers

update  April 18, 2011 at 11:18 AM
Predict and justify the output of the following code snippet written by the developer to update the Status table: String str = "UPDATE m_id SET m_id= ? WHERE bk_id= ? "; PreparedStatement ps = con.prepareStatement(str); ps.setString(1, "m2"); ps.setString(2, ... View Questions/Answers

exception  April 18, 2011 at 11:16 AM
Identify the reason for SQLException exception, which is encountered when the developer tries to run the following code snippet to insert a row in the Status table: String str = "INSERT INTO Status VALUES (?,?)"; PreparedStatement ps = con.prepareStatement(str); ResultSet rs=ps.createResu... View Questions/Answers

problem with the installation of apache-geramio2.1 server  April 18, 2011 at 10:56 AM
i have installed Apache Geronimo 2.1 server on my pc,but desired page is not coming on the BROWSER after typing localhost:8080 on the contrary oracle page is displayed.please help me in this regard ... View Questions/Answers

iphone tab bar  April 18, 2011 at 10:50 AM
how to add tab bar items dynamically in iphone?? ... View Questions/Answers

Error in log file  April 18, 2011 at 12:38 AM
Hi, I AM using Apache tomcat 6.0.16 server and created the JDBC connection pool to connect data base oracle 10g at time of executing project i get following errors in "Apache Tomcat 6.0.16 log". Apr 17, 2011 11:57:57 AM o... View Questions/Answers

Error in log file  April 18, 2011 at 12:38 AM
Hi, I AM using Apache tomcat 6.0.16 server and created the JDBC connection pool to connect data base oracle 10g at time of executing project i get following errors in "Apache Tomcat 6.0.16 log". Apr 17, 2011 11:57:57 AM o... View Questions/Answers

Error in log file  April 18, 2011 at 12:38 AM
Hi, I AM using Apache tomcat 6.0.16 server and created the JDBC connection pool to connect data base oracle 10g at time of executing project i get following errors in "Apache Tomcat 6.0.16 log". Apr 17, 2011 11:57:57 AM o... View Questions/Answers

how can manages recordset in jsp  April 17, 2011 at 11:21 PM
I am ask a question how can show 5-5 records in jsp page and I get answer provided by you but it give exception:- org.apache.jasper.JasperException: /jsp/paging.jsp(75,0) According to TLD or attribute directive in tag file, attribute items does not accept any expressions ... View Questions/Answers

source code  April 17, 2011 at 10:03 PM
hellow!i am developing a web portal in which i need to set dialy,weekly,monthly reminers so please give me source code in jsp ... View Questions/Answers

Java  April 17, 2011 at 8:58 PM
Write a java swing program to get name and email id. Display the error message if email id is not in xxxxx@xxxx.xxx format. ... View Questions/Answers

compiler vs interpreter  April 17, 2011 at 7:53 PM
"compiled program executes faster especially if the program contains loop" Why? ... View Questions/Answers

Subtraction of a date from Sql and other from java.  April 17, 2011 at 4:59 PM
I want to subtract a date that i retrieve from mysql database with the system date that i retrieve from java. I want the difference between the two date in the integer form. how do i do it ? Please help me. Thank you ! ... View Questions/Answers

programing  April 17, 2011 at 3:12 PM
Using Java, Design a simple interface that can capture information of your choice with the following controls; Labels, Text Fields, Checkbox, Radio buttons and command buttons. You may have to use the following files and others you may find important. Import java.awt.FlowLayout Import javax.swing... View Questions/Answers

xml  April 17, 2011 at 12:19 AM
Design an XML to maintain book details to do the following: (i) Separate Data (ii) Exchange Data (iii) Store Data (iv) Create new language. ... View Questions/Answers

Java web Application  April 16, 2011 at 11:09 PM
Hi! I have developed a java web application project using netbean IDE with glassfish server. My question is how to create a runnable file from this. How can we make it to a single file? I think it is war file. Please help me. Thanks in advance. ... View Questions/Answers

read xml  April 16, 2011 at 10:17 PM
hi all, i want to ask about how to read an xml in java ME.. here is the xml file <data> <value> <struct> <member> <name> User_Name </name> <value> ... View Questions/Answers

how to call static method  April 16, 2011 at 10:05 PM
class A { //some code } class B extends A { static method() } class C { } //how to access static method() from B to C ... View Questions/Answers

how to call static method  April 16, 2011 at 10:05 PM
class A { //some code } class B extends A { static method() } class C { } //how to access static method() from B to C ... View Questions/Answers

how to call static method  April 16, 2011 at 10:05 PM
class A { //some code } class B extends A { static method() } class C { } //how to access static method() from B to C ... View Questions/Answers

how to call static method  April 16, 2011 at 9:59 PM
class A { //some code } class B extends class A { static method() } class C { } //how to access static method() from B to C ... View Questions/Answers

how to call static method  April 16, 2011 at 9:58 PM
class A { //some code } class B extends class A { static method() } class C { } //how to access static method() from B to C ... View Questions/Answers

how to call static method  April 16, 2011 at 9:58 PM
class A { //some code } class B extends class A { static method() } class C { } //how to access static method() from B to C ... View Questions/Answers

Java memory options from command line  April 16, 2011 at 6:56 PM
Hi, How to use java memory options from command line? Thanks ... View Questions/Answers

java  April 16, 2011 at 5:28 PM
Design a simple applet that can draw shapes such as rectangles, circles, Lines and ovals. Set them to different colors. ... View Questions/Answers

java  April 16, 2011 at 5:26 PM
Using Java, Design a simple interface that can capture information of your choice with the following controls; Labels, Text Fields, Checkbox, Radio buttons and command buttons. You may have to use the following files and others you may find important. Import java.awt.FlowLayout Import javax.swing... View Questions/Answers

Access URL Failed!?  April 16, 2011 at 2:43 PM
Hi, May i know how to convert my domain name into IP address? becuase i working on J2ME but don't know why the my application unable to access the URL. "connector.open("http://886089.com/datetime.asp")". I Had test on www.google.com, www.yahoo.com and everything just work fine. Please Help Me!! T... View Questions/Answers

secret behind Serializable interface  April 16, 2011 at 1:53 PM
How serialization work? What is the secret behind it. Can we create our one serializable interface. If so how? ... View Questions/Answers

what are the codes for uploading and downloading files in and from database?  April 16, 2011 at 12:19 PM
We are designing a student's website where they can get and post study materials. We actually need the code to upload and download files in and from the database. we will be very gratefull if you provide us those with a bit of explanations. Thank you. ... View Questions/Answers

secure online payment code for jsp  April 16, 2011 at 11:58 AM
how to implements online payment in jsp . ... View Questions/Answers

Query about bioinformatics  April 16, 2011 at 11:39 AM
Wat is ment by spring? How it useful in bioinformatics? ... View Questions/Answers

Help with SELECT/JOIN statement  April 16, 2011 at 2:58 AM
I have two tables (t1 and t2) that each have the same columns. t1 has data and t2 has changes to the data. I want a select statement that will return me all rows of t1 but, when t1.id = t2.id, I want the columns of t2 instead of t1. I am using Postgres. t1 id | ... View Questions/Answers

Expand / Collapse form div when click on button  April 15, 2011 at 9:03 PM
Hi, I have a form integrated from Wufoo with iFrame code. If the user misses a field an error message appears but it takes more space than the DIV Formbox. How can I make the DIV formbox expand once the form gets higher? Thanks <div class="formbox"><... View Questions/Answers

jsp  April 15, 2011 at 7:44 PM
write a code for jsp file generator to generate a jsp page automatically taking html page as input ... View Questions/Answers

java  April 15, 2011 at 7:24 PM
Write a Java application that can capture five or more numbers and returns the total of the numbers, the average and the difference between total and average using input dialogs ... View Questions/Answers

Writing a Program to calculate Circumference of planets reading from a file and writing to new file.  April 15, 2011 at 6:38 PM
Hello, I would like to know how to write a program to read data from a file. Then use the numerical data within to then calculate the circumference of the planets. I then have to output the data into a new file. The text file is Sun,860000 Mercury,4000 Venus,8000 Earth,8400 Mars,2500 Ju... View Questions/Answers

how can manages records in jsp  April 15, 2011 at 5:59 PM
how can sho only five record at a time and next 5 on click next button and so on in jsp.... ... View Questions/Answers

Writing a Program to calculate Circumference of planets reading from a file and writing to new file.  April 15, 2011 at 4:43 PM
Hello, I would like to know how to write a program to read data from a file. Then use the numerical data within to then calculate the circumference of the planets. I then have to output the data into a new file. The text file is Sun,860000 Mercury,4000 Venus,8000 Earth,8400 Mars,... View Questions/Answers

Augmented Reality in Android  April 15, 2011 at 4:27 PM
How to get location of the object shown in camera view using Augmented Reality in Android? ... View Questions/Answers

Media player design  April 15, 2011 at 3:37 PM
i want to know that how will create media palyer application in java ... View Questions/Answers

Exception in Thread  April 15, 2011 at 3:12 PM
i am developing a rmi application in eclipse use genady rmi plugin and server side code run effeciently but when i run client and generate connection with server i have following exception : Blockquote Exception in thread "RMI TCP Connection(idle)" ... View Questions/Answers

html  April 15, 2011 at 1:12 PM
DHTML page to create drop down menu with three menus and on Mouse over. ... View Questions/Answers

Database  April 15, 2011 at 1:09 PM
In MySQL table i am adding the fields of name,photo,video,age,category.in the category i have some subjects.if one person login into my-site the he upload the one video under one subject.then i want the following thing i want to see the uploaded videos under the one category of same type(for e... View Questions/Answers

Regarding Documentation of API  April 15, 2011 at 1:08 PM
Hello How to get java documentation of classes ,Interfaces and methods from windows command prompt.In the sense Java.lang,java.awt,java.math,java.io etc. Kindly tell the solution. How to type in Windows command prompt(console) to get the documentation API. ... View Questions/Answers

Regarding Documentation of API  April 15, 2011 at 1:08 PM
Hello How to get java documentation of classes ,Interfaces and methods from windows command prompt.In the sense Java.lang,java.awt,java.math,java.io etc. Kindly tell the solution. View Answers. How to type in Windows command prompt(console) to get the documentation API. ... View Questions/Answers

XML  April 15, 2011 at 1:05 PM
Design an XML to maintain book details to do the following: (i) Separate Data (ii) Exchange Data (iii) Store Data (iv) Create new language. ... View Questions/Answers

forgot password code in jsp  April 15, 2011 at 12:49 PM
forgot password code in jsp ... View Questions/Answers

Database  April 15, 2011 at 12:23 PM
In my project i am adding some subjects under the field of category.i want the following things 1)possible for the admin to add some more subjects in the category in the web page. 2)when admin add some subjects then automatically save that subjects in my database for this i want procedure some q... View Questions/Answers

servlets  April 15, 2011 at 11:24 AM
Even though HttpServlet doesn't contain any abstract method why it is declared as abstract class? what benifits we can get by declaring like this?(i.e, with out containing the abstract methods, declaring a class as abstract) please give the answere ... View Questions/Answers

Database  April 15, 2011 at 10:38 AM
i want to store the uploaded video and image for this which datatype we want to use in creation of the table in MySQL ... View Questions/Answers

jsp interview questions  April 15, 2011 at 9:59 AM
what is difference betwen and ? ... View Questions/Answers

java Application Convert to java Applet  April 15, 2011 at 9:46 AM
Hi every Java Masters i'm Java beginner ,and i want below this figures source code convert to Java Applet hope every Masters can helping thank . import java.util.*; import java.text.*; class RCars{ public static void main(String[] args){ DecimalFormat df = new DecimalForm... View Questions/Answers

java Application to java Applet  April 14, 2011 at 11:48 PM
sorry Java master disturb again how can i modify below this Java application to applet because in swtich case i had put this countinue selection source code to make user choosing so hope can helping again thank a lot . sample source code System.out.... View Questions/Answers

Listening port 8080  April 14, 2011 at 9:42 PM
I need a java code through which i can listen the http port 8080 ... i want to interpret the incoming http request on 8080 port. Please help. ... View Questions/Answers

jdbc drivers  April 14, 2011 at 7:58 PM
what are the various kinds of jdbc drivers explain in detail ? ... View Questions/Answers

GCD  April 14, 2011 at 7:47 PM
WRITE PROGRAM TO FIND GREATEST OF TWO NUMBERS? ... View Questions/Answers

Where is my.cnf in linux?  April 14, 2011 at 7:30 PM
Hi, Can anyone tell me where is my.cnf in linux? Thanks ... View Questions/Answers

Database  April 14, 2011 at 3:49 PM
select * from student i am not asking this.i am asking about that the command line code like create table student(..........) like this way ... View Questions/Answers

Including applet in JSF (XHTML)  April 14, 2011 at 3:45 PM
Hi I want to generate graphs in facelets project. We are using JSF 2.0. We have Perspective for Java to generate graphs. in this project. So, Perspective for Java is providing an applet which i need to embed in jsf. Could any one let me the solution? ... View Questions/Answers

Database  April 14, 2011 at 3:10 PM
is it possible to view the query code after executing it.if yes tell me the procedure. ... View Questions/Answers

Java (Text To Speech)  April 14, 2011 at 2:42 PM
How can a selected part of a webpage be pronounced using java Swing? ... View Questions/Answers

Regarding Documentation of Packages  April 14, 2011 at 1:14 PM
Hello How to get java packages ie documentation of classes ,Interfaces and methods from windows command prompt.In the sense Java.lang,java.awt,java.math etc. Kindly tell the solution. ... View Questions/Answers

Database,Java  April 14, 2011 at 1:01 PM
help me for the following things if one customer upload the video,photo,text on the site then automatically it saved in MYSQL database.and how to retrieve that video,photo,text.and another time he upload the another video,photo,text then how can watch that uploaded videos.photo,text so tell me ... View Questions/Answers

database  April 14, 2011 at 12:37 PM
in my database i add some fields.the total fields are first name,last name,email,password,conform password,date of birth,age,gender,address,country,state,city,telephone,mobile, how did u hear about us. but i got some syntax errors so send me the how to write the query and insert the one table va... View Questions/Answers

How to Increase / decrease the brightness of an image?  April 14, 2011 at 12:35 PM
How to Increase / decrease the brightness of an image? ... View Questions/Answers

How to Increase / decrease the contract of an image?  April 14, 2011 at 12:34 PM
How to Increase / decrease the contract of an image? ... View Questions/Answers

Java Application change to java applet  April 14, 2011 at 12:33 PM
Hi every Java Masters i'm Java beginner ,and i want below this figures source code convert to Java Applet hope every Masters can helping thank . import java.util.*; import java.text.*; class Parking{ public static void main(String[] args){ DecimalFormat df = new ... View Questions/Answers

database  April 14, 2011 at 12:01 PM
when i am writing this code CREATE TABLE student ( id bigint(20) NOT NULL auto_increment, firstname varchar(100) default NULL, lastname varchar(100) default NULL, em... View Questions/Answers

CHECK WHICH NO IS GREATER IN 4 NO'S  April 14, 2011 at 11:53 AM
MAKE A PROGRAM TO CHECK WHICH NO. IS GREATER IN 4 NO'S IN JAVA ??? ... View Questions/Answers

Database  April 14, 2011 at 11:30 AM
in my database i insert the first name and last name as('abc','def')but it gives error.plz send me the query how can we insert the first name,last name,email id,bate of birth,and mobile number. ... View Questions/Answers

Database  April 14, 2011 at 10:44 AM
in my database i insert the first name and last name as('abc','def')but it gives error.plz send me the query how can we insert the first name,last name,email id,bate of birth,and mobile number. ... View Questions/Answers

Database  April 14, 2011 at 10:29 AM
In MYSQL database i m given as the email id as the char but i enter the email id it gives manually error.how can i recover that error ... View Questions/Answers

About Database  April 14, 2011 at 10:26 AM
in my database i enter the date of birth as Birth_Date date but i dont know in which format we can mention the date of birth ... View Questions/Answers

servlet  April 14, 2011 at 10:07 AM
How do we define an application level scope for servlet? ... View Questions/Answers

please help me to this problem..  April 14, 2011 at 2:21 AM
i wrote a program like keyboard and i used [JTextFiled] means that just you can write inside the program (i.e inside the JTextField) but i want to make this program to let me write where i clicked (i.e allows me to write any thing at the field where i clicked on it ... View Questions/Answers

java exception  April 13, 2011 at 10:42 PM
define an exception called no match exception tat z thrown wen a string z not equal to india ... View Questions/Answers

DESKTOP SHARING USING JAVA  April 13, 2011 at 9:11 PM
Sir i have the following code for scren capturing it is capturing in png format but when i am sending it over other m/c it is taking delay of around 16 seconds..i think it is because this line of code sleep(10000); because i am making the thread to sleep for 10sec it is taking too much of time ... View Questions/Answers

mysql error 1042 can't get hostname for your address  April 13, 2011 at 5:23 PM
Hi, I am not able to connect to MySQL database. Its giving following error: mysql error 1042 can't get hostname for your address How to solve this error? Thanks ... View Questions/Answers

List files recursively in linux  April 13, 2011 at 5:18 PM
Hi, How to List files recursively in linux? I want to list all the .php file. Thanks ... View Questions/Answers

MySQL Default Port number  April 13, 2011 at 5:13 PM
HI, What is MySQL Default Port number? Thanks ... View Questions/Answers

Regarding path settings in java  April 13, 2011 at 4:41 PM
Hello I had a problem of setting paths in Java.I setted classpath(C:\java\j2sdk1.4.2\lib) and path(c:\java\j2sdk1.4.2\bin) in system variables. But when i compile simple java progrm by typing javac Hell.java it is not working in compiling and telling no external and internal commands and ... View Questions/Answers

About MYSQL  April 13, 2011 at 4:31 PM
is it possible to upload the video on mysql database ... View Questions/Answers

ClassCastException  April 13, 2011 at 4:11 PM
import java.util.*; public class Test1{ public static void main(String a[]){ Set s = new TreeSet(); s.add(new Person(20)); s.add(new Person(10)); System.out.println(s); } } class Person{ Person(int i){} } output: Exception in thread "main" java.lang.ClassCa... View Questions/Answers

Remove Whitespace SQL  April 13, 2011 at 3:46 PM
Hi, can any one please explain how to remove whitespace in sql database. ... View Questions/Answers

Collections  April 13, 2011 at 2:51 PM
import java.util.*; public class Mapit { public static void main(String[] args) { Set<Integer> set = new HashSet<Integer>(); Integer i1 = 45; Integer i2 = 46; set.add(i1); set.add(i1); ... View Questions/Answers

collections in java  April 13, 2011 at 2:47 PM
please explain me the flow of this program..i m getting o/p as 2 1 1..y not 2 1 0..is it that if we change the i2 value,it doesnt remove. import java.util.*; public class Mapit { public static void main(String[] args) { Set<Integer> set = new HashSet<Integer>(); Integer i1 = 45; Int... View Questions/Answers

what is the java cache system?  April 13, 2011 at 2:40 PM
To send the webapplication of java cache system. ... View Questions/Answers

Java swing code  April 13, 2011 at 2:38 PM
can any one send me the java swing code for the following: "A confirmation message after the successful registration of login form" ... View Questions/Answers

Java swing code  April 13, 2011 at 2:37 PM
can any one send me the java swing code for the following: "A confirmation message after the successful registration of login form" ... View Questions/Answers

DMCA.com