Java J2EE Interview Questions
Questions Answers Views Company eMail

Hello, My project requirement is like I need to create a web page using MVC pattern. I hava a bean class, jsp page, servlet, service and dao. My jsp has two fields. One is dropdown list. The option values has to get populated from the database table. The other one is a text box and its value has to come from database table. As of now I have defined the fields in bean class, got the values from database using arraylists in dao class and I called this from service class. Can anyone please tell me the workflow of how the servlet will get this arraylist and populate the arraylist values as dropdown options in jsp page? Also I would like to know the role of bean class in MVC pattern? Thanks in advance!

1808

please write java program of instanceOf keyword implementation

TCS,

2 3702

Hi i am creating desktop application in that i want calling to mobile number. i have java telephone api (JTAPI) but i dont understand how it configure & use plese help me

1335

How to extract HashMap values?

Marlabs,

5 9843

what is the main reason for developing struts? what is advantages over Basic MVC architecture based JAVA Application?

1 4098

How to Create A Wapper Class in core Java and Why are Use in java?

Amdocs,

2 5765

1.can we transfer a request from one struts application to another struts application? 2. how many types of action servlets r there what r they

TCS,

2736

Difference between hashCode() & equals()?

HCL,

3 6913

Write a program for Sum of the digits for a given number Ex: suppose user entered Number is 1214, It should calculate the above number like 1+2+1+4 = 8

Amazon,

2 6270

Write a program to display numeric value in reverse order. Ex: I have given a number like 7584, It should display in reverse order like 4857.

6 7037

write a program, when a statement is entered, it should display in reverse order. Ex: Statement is "I am writing program in reverse order". Output should be like "order reverse in program writing am I".

4 9523

What is the reason that multiple inheritance is not possible in java??

1 2871

Why are the destructors for base class and derived class called in reverse order when the program exits

HCL,

1672

Definition for connection pooling?

3 4117

abstract class Demo { public void show() { System.out.println("Hello I am In show method of Abstract class"); } } class Sample extends Demo { public void show() { super.show(); System.out.println("Hello I am In Sample "); } } public class Test { public static void main(String[] args) { //I WANT TO CALL THE METHOD OF BASE CLASS IT IS POSSIBLE OR NOT CAN WE USE SCOPE RESOLUTION OPERATOR TO CALL OR JAVA NOT SUPPORTED THAT :: OPERATORE } }

3 12711


Un-Answered Questions { Java J2EE }

What restrictions are placed on the location of a package statement within a source code file?

595


What does transactional work mean?

147


Can you pass by reference in java?

507


What is the purpose of tostring() method in java?

521


am searching for the job based on java, swing, currently working small company. they are not giving any salary slip, offer letter. so if i try outside for MNC's they start with previous company details. what should i do..? please help me to get job and make my career.

2196






What is an on stage swing?

524


What are the changes in java.io in java 8 ?

525


What is the easiest way to set the classpath ?

565


Can classes declared using the abstract keyword cab be instantiated?

540


What types of validations are available in xml based validation in struts2?

527


Explain about the process of functioning of the struts program?

568


Explain why wait(), notify() and notifyall() methods are in object class rather than in thread class?

534


What configuration changes are required to use resource files in Struts?

535


Open the find box and editing the text in text box then what is name for this dialog box??

1916


What is the purpose of @requiredstringvalidator annotation?

510