Java J2EE Interview Questions
Questions Answers Views Company eMail

What is garbage collection in Java, and how can it be used ?

Accenture, HCL, Infosys, TCS, Wipro, Sara, SITS,

32 57818

Differentiate Vector and ArrayList?

Wipro, Max Telecom,

6 8204

Differentiate constructor and a method and how are it be used?

Wipro,

7 8687




What is an abstract class?

DBS, Wipro,

7 7503

How can final class be used?

Accenture, Wipro,

5 9418

By what default value is an object reference declared as an instance variable?

Wipro,

1 10740

Java support what type of parameter passing ?

Wipro,

7 12051

Explain the term serialization?

Wipro,

10 9902

Is there is any error if you have multiple main methods in the same class?

Infosys, Wipro,

10 11235

What is Overriding and how can it be used?

Wipro, Consagous,

7 13657

How is serialization used generally ?

3 4613

How are Swing and AWT be differentiated?

Wipro,

3 5915

Explain pass by reference and pass by value?

IBM, Wipro,

8 12060

In which way does a Primitive data type is passed ?

Sun Microsystems,

5 7823

What happens when a main method is declared as private?

DELL, Infosys, L&T, Sun Microsystems,

22 36982







Un-Answered Questions { Java J2EE }

Hello Everyone.. I m trying to develop a java swing application where i can display a doc file Jeditorpane or Jtextpane.

1106


How to solve the problem of generating the unique hash keys with hash function?

823


placement papaers of spring computing technology

355


how to handle exceptions in ejb?

1245


Name the class that is used to bind the server object with RMI Registry?

1039






1.IN CASE OF DYNAMIC METHOD DISPATCH WHY WE USE REFERENCE VARIABLE,WE CAN USE THE DIFFERENT DEFINED OBJECT DIRECTLY TO ACCESS THE DATA MEMBER AND MEMBER FUNCTION OF THAT RESPECTIVE CLASS?WHAT IS THE MAIN FUNCTION OF "REFERENCE VARIABLE" HERE?

2499


What is the SimpleTimeZone class?

1029


what is interface in java ?can you explain with simple example?and what is the difference between abstract and interface?

1453


what is difference betweem home interface and remote interface?

1470


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

1146


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 ?

1517


what is mena by object block any what is the use of that

1114


Explain the steps in details to load the server object dynamically?

3825


How to explain Software Bank Loan descriptions

1243


how a programmer confirms that the data submitted has been succesfully inserted into the database(either oracle or my sql).. How a programmer confirm if there is any problem with the program he wrote for insertion... ANS:--- >executeupdate method is having boolean return type, if anything goes wrong in data insertion or data updation, it would return false. otherwise, if it successfully inserts data into the database, it would return true NOW HOW TO I CHECK IN MY DURING EXECUTION WHETHER IT RETURNS TRUE OR FALSE... WELL IT WILL DISPLAY ANY MESSAGE OR NOT

1050