Java Related Interview Questions
Questions Answers Views Company eMail

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

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

32 57727

Differentiate Vector and ArrayList?

Wipro, Max Telecom,

6 8185

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

Wipro,

7 8661




What is an abstract class?

Wipro,

7 7472

How can final class be used?

Wipro, Accenture,

5 9386

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

Wipro,

1 10720

Java support what type of parameter passing ?

Wipro,

7 12012

Explain the term serialization?

Wipro,

10 9864

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

Wipro, Infosys,

10 11201

What is Overriding and how can it be used?

Consagous, Wipro,

7 13630

How is serialization used generally ?

3 4596

How are Swing and AWT be differentiated?

Wipro,

3 5898

Explain pass by reference and pass by value?

IBM, Wipro,

8 12027

In which way does a Primitive data type is passed ?

Sun Microsystems,

5 7793

What happens when a main method is declared as private?

L&T, DELL, Infosys, Sun Microsystems,

22 36899







Un-Answered Questions { Java Related }

What are the SSL formats supported by iPlanet/SunOne?

619


Hi Friends, i have searched in google but not clear. can you give bank example with synchronized keyword

887


please tell me the name and url path for type-4 driver ?

1621


How task's priority is used in scheduling?

1073


my interviewer asked me what technical specification you used how to answer that question

1157






Hi frnds how to lock an user when he enter wrong credentials more than 3 time using java or j2ee tech take username and password in a bean no need to connect DB and validate give me some sample application code or links its urgent for me thanks in advance

1050


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 ?

1513


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?

967


whats is statement and procedure

960


Why sun introduce concept of anonymous class? What is need and real life use of anonymous class

1167


which pattern is default in scanner package?

1169


Write a program for the following topic - switch case,looping using fuction calling,nesting,console input output. Aim- to print a menu:- 1-series 2-single value. Each menu having sub menu armstrong or perfect.

810


placement papaers of spring computing technology

348


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

1113


how to get the critical application?

1404