J2EE Interview Questions
Questions Answers Views Company eMail

Whats the O/p of the below code snippet ? And explain how does it imply the concept of call-by-value/call-by reference. (PS : Pls ignore syntax errors) public class One { public oneA(){ sop ("Into One--");} } public class Two extends One{ public twoT(){ sop ("Into Two--"); } } public class Home { One a; Two t; public static void main(argv[]) { sop ("In Home--"); sop(a.oneA()); sop(t.oneA()); sop(a.twoT()); sop(t.twoT()); } }

Wipro,

4 2908

Explain the following statement: Java is always pass-by-value.

Wipro,

4 5768

what is direct link to download swing ebook,applet,ejb,core java

1122




how to run servlet program between two computer through internet ?

TATA,

1595

what is the difference between servlets and jsp?

Cegonsoft,

2 4574

what is the difference between application server and web server?

IBM, Cegonsoft,

5 7015

what is meant by proxy server

1 2953

Which implicit object in jsp is synchronized?

5 6603




What is the use of RequestProcessor, if we are having ActionServlet in struts

Oracle,

4 11437

static variable is a class variable which value remains constant for the entire class?? variable means value is changed....hear value is not changed... why it is called static variable

Infosys,

5 5669

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 4470

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 4473

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 6736

Difference between treemap & sortedset

Oracle,

3 8319

Diffrence between arraylist and hashmap

Oracle,

3 4336


Post New J2EE Questions






Un-Answered Questions { J2EE }

what is meant by proxy server

2953


to update a batch in a table in jdbc which method of statement object is used

801


CANDOR Services, a leading provider of next-generation staffing services, draws from unparalleled resources and expertise to offer you innovative, quality workforce solutions. We have openings for "J2EE ARCHITECT" with one of our clients. Client is CMM Level 5 company. Location : Hyderabad Roles A J2EE Architect with expertise in Web Architecture (covering Spring MVC, AOP, Webflow, Struts, Tiles, Hibernate, JAAS, Web Application Performance Turning & Measurement) as part of Solutions Architecture Group: Position involves in providing architectural vision, conceptualize and provide architectural approaches, create models and specifications, and validating the architecture against requirements and assumptions. Also involves in providing oversight over ongoing projects as a reviewer and auditor Educational Requirements A minimum of BS or MS (MS preferred) in Computer Science or Engineering or equivalent experience in the IT industry. Skill Sets Overall 8-10 Years of experience in IT industry with 3-4 Years of experience in Service industry Technology Skills Java, J2EE, MVC Frameworks (Struts/WebWork/JSF/Spring), Spring, AOP, WebFlow, ORM Tools (Hibernate/Ibatis/JDO/Tapestry), App servers, Databases, JAAS Web Application Performance Tuning & Measurement 6+ years Java software development experience. 4+ years of enterprise Java development, with emphasis on web-based applications. Strong relational database and SQL skills (5+ years). Mail to : anuradha.k@candorservices.co.in

2187


public class ActionSearchBean extends GenericSearchBean { @Override public String search() { data.setRowCount(null); if(data.getRowCount()==0){ data.getNoRecordFound().setRendered(true); data.getDataScroller().setRendered(false); } return "searchAction"; } @Override public String clear() { data.setRowCount(null); if (data.getRowCount() > 0){ data.getNoRecordFound().setRendered(false); data.getDataScroller().setRendered(true); }else{ data.getNoRecordFound().setRendered(true); data.getDataScroller().setRendered(false); } data.setModel(new ActionDTO()); data.setRowCount(null); return "searchAction"; } } what is the purpose of @Override ...what will do @Override here ?

1060


I’m new to WebLogic Does anyone knows how to Deploy Application using

879


public class ActionDTO extends GenericDTO implements Serializable,Auditable { // default serial version id, required for serializable classes. public static final String ACTION_SUSPEND = "SPN"; public static final String ACTION_DEREGISTER = "DRR"; public static final String ACTION_REINSTATE = "REI"; private static final long serialVersionUID = 1L; private Long actionId; private long accountId; private Date actionDate; private String actionType; private String remarks; private AccountDTO account; public ActionDTO() { } public ActionDTO(Long accountId, String action, String remarks, String updatedBy) { setAccountId(accountId); setActionType(action); setActionDate(new Date()); setRemarks(remarks); setUpdatedBy(updatedBy); } public Long getActionId() { return this.actionId; } public void setActionId(Long actionId) { this.actionId = actionId; } public long getAccountId() { return this.accountId; } public void setAccountId(long accountId) { this.accountId = accountId; } public Date getActionDate() { return this.actionDate; } public void setActionDate(Date actionDate) { this.actionDate = actionDate; } public String getActionType() { return this.actionType; } public void setActionType(String actionType) { this.actionType = actionType; } public String getRemarks() { return this.remarks; } public void setRemarks(String remarks) { this.remarks = remarks; } // bi-directional many-to-one association to AccountDTO public AccountDTO getAccount() { return this.account; } public void setAccount(AccountDTO account) { this.account = account; } @Override public String toString() { // TODO Auto-generated method stub return null; } } what is the purpose of @Override public String toString()...and what will do here ?

1310


whay java does not support bass by reference

1409


what is direct link to download swing ebook,applet,ejb,core java

1122


Since we can create managed bean by two ways as, we can define the bean name in faces-config.xml file so that page can use that OR we can write annotation on bean class so that it is automatically assign to page but I want to know which one is good programming practice ? And also mention disadvantage of other which should not prefer ... Thanking you...

1044


i want test pattern of zylog company and some examples also

1423


when i m calling java for web browser . so browser it's not support. show error in browser: internal error occur. java.lang.NoClassDefFoundError. will you give me solution why it's not starting browser.? is there any consult with .net framework2.0?

786


I Want build and release interview questions

2191


Hi Friends. I want complete technical flow of j2ee project with following technologies. jsp , servlet , Struts , Hibernate , (should follow mvc-2 design pattern) . with DAO ,DTO SERVICE layers .

3432


In DAO we are writting sql queries , how it is possible with creating and closing database connections.

708


how to run servlet program between two computer through internet ?

1595