Java Code Interview Questions
Questions Answers Views Company eMail

How to read MS-word document in java without displaying junk (unnecessary) data?

Cognizant,

5 15173

how to print a message to console without using main() function?(do not use even static blocks also.)

Google, Zoho,

12 16845

How to create and run runnable jar file of a Java Project.

TCS, Wipro, US Consulate, HCL, Tech Mahindra,

4 27551




i am trying to intigrate ejb and hibernate ,from session facade i am callind dao implemented through hibernate,i am getting a ClassDefNotFoundException for this org/hibernate/Session i ve set the class path at build path and in setEnv in weblogic still .........

1156

how to display after one month adding today's sysdatedate in jsp?

1 3469

how to display date after one month using from today date in jsp

TCS,

3 4451

How to convert string containing decimal point into integer in java? For example given a string like "3.14" as input how to get integer 3 as result.

7 26690

inner join,outerjoin,trigger,stored procedure explain with code snippets?

IBM,

1 6419

how to store and retrive a set of values without using an array

FCS, HCL, Maximus,

8 8118

Can you forward data from a servlet to a regular .java class that is not a servlet?

3 4237

I am trying to pass the string firstName from a Servlet called SampleServet. I am running this on eclipse and it tells me that "the value for annotation attribute must be a constant expression. I don't understand why it is giving me this error. @PersonAnnotation(name = SampleServlet.firstName) public class AnnotationClass{

1075

How can we get the details for printing the employee details at run time using JDBC connectivity? can u provide the coding for that? Its urgent?

2 9449

How to run the Result Intemation System project in java for collage student in which result of internal exam marks send on parents mobile using SMS? what software required to run this project? please reply immediately...

1708

how to create a (*)pyramid using java codes???

Infosys,

5 21991

Where can i find some sample applications for different J2EE frameworks like Spring,Struts ,JSF, Hibernate etc ??

1318







Un-Answered Questions { Java Code }

In java, why do we set thread priority, when we know that there is no guarantee by which a thread should be execute?

1257


write a c program which takes 20 numbers in an array as input from user and rearrange them in two different array defining even or odd

1791


How to create Date method to set the date in Ms Access

1004


write a program in java to solve a system of n-variabled simultaneous equations using the guassian elimination method. let the maximum possible value of n be 100. run the program using hypothetical values for a set of 10- variables simultaneous equations. print out the program, the input equation and the results generated by the program.

2962


what are the other loops except for for,while,do while and until?

1370






hai, i want to know how the connectionpool manager work in the java or netbeans.Anybody having the exact code plz give to me i have no idea about that so help me plz

1791


write a program to input a natural number less than and display it in words.test your program on the sample data and some random data sample input= 29 sample output= Twenty nine sample input=17001 sample output= out of range sample input=119 sample output =one hundred and nineteen sample input=500 sample output=five hundred

2234


Can we change the validator-rules.xml for our own validations in struts??

1527


Bubble Sort. java thereafter the user will be asked to inpout the size of the list,sort the list in ascending order and display the sorted list in a horizontal manner???

1637


For printing a message we use System.out.println in normal programs. We use String msg="text....."; Can't we use String msg=" " in normal programs and System.out.println("........") in applets. Please answer this question?

1150


A game that has five levels of play has the score for each level stored in an array. You are to write a program that goes through that array and finds: a) the minimum score, and the level at which it occurred b) the maximum score, and the level at which it occurred c)the average score for all five levels The score data you must use for this program are as follows: Game Level Score 1 450 2 316 3 148 Stack implementations is mandatory.

1316


How to get one hasmap value in another hashmap ,only value not key

132


what is runtime class?

1222


plz send code for manage group of hotels in j2ee frontend:J2EE Backend: DB2 Express

1515


exception org.apache.jasper.JasperException: java.lang.NullPointerException org.apache.jasper.servlet.JspServletWrapper.handleJs pException(JspServletWrapper.java:491) org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:419) org.apache.jasper.servlet.JspServlet.serviceJspFile( JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServ let.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.j ava:717) root cause java.lang.NullPointerException org.apache.struts.taglib.TagUtils.retrieveMessageRes ources(TagUtils.java:1175) org.apache.struts.taglib.TagUtils.message(TagUtils.j ava:1038) org.apache.struts.taglib.bean.MessageTag.doStartTag( MessageTag.java:224) org.apache.jsp.register_jsp._jspx_meth_bean_005fmess age_005f0(register_jsp.java:138) org.apache.jsp.register_jsp._jspService(register_jsp .java:94) org.apache.jasper.runtime.HttpJspBase.service(HttpJs pBase.java:70) javax.servlet.http.HttpServlet.service(HttpServlet.j ava:717) org.apache.jasper.servlet.JspServletWrapper.service( JspServletWrapper.java:377) org.apache.jasper.servlet.JspServlet.serviceJspFile( JspServlet.java:313) org.apache.jasper.servlet.JspServlet.service(JspServ let.java:260) javax.servlet.http.HttpServlet.service(HttpServlet.j ava:717)

2449