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,

32 51309

Differentiate Vector and ArrayList?

Wipro, Max Telecom,

6 5849

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

Wipro,

6 6395




What is an abstract class?

Wipro,

7 5328

How can final class be used?

Wipro, Accenture,

4 7136

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

Wipro,

1 8324

Java support what type of parameter passing ?

Wipro,

7 9645

Explain the term serialization?

Wipro,

10 7723

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

Wipro,

10 8989

What is Overriding and how can it be used?

Consagous, Wipro,

7 11846

How is serialization used generally ?

3 3307

How are Swing and AWT be differentiated?

Wipro,

3 4969

Explain pass by reference and pass by value?

IBM, Wipro,

8 9670

In which way does a Primitive data type is passed ?

Sun Microsystems,

5 6128

What happens when a main method is declared as private?

L&T, DELL, Infosys, Sun Microsystems,

20 28185







Un-Answered Questions { Java Related }

Which method is called when reference variable is passed in system.net?

872


what is an isolation level?

1265


What is Remote Server?

789


what is a portable component?

578


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

676


Hi.... I applied for the post of scientific officer/Engineer-SB(Programmer).Please post the syllabus and sample papers.

627


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

785


there are 67 seats in train . there are only 5 seats in a row and in last row there are only 2 seats. One person can reseve only 5 seat at a time. If person reserving seat , the care is atken that he may get all in row. if seats are not available in row then the arrangement is so that person group get nearby seats. the following class is given public class seat { char name; int seat; boolean isSeatempty } 1.Draw require class digram and object diagram. 2.Write function seatallot(int noofperson) to allocate seat with seat nuber printed for the each name.

2275


which one is more efficient int x; 1. if(x==null) 2.if(null==x) state which one either 1 or 2?

5150


In RMI, inorder to sent the stub reference to the client, is we have to load the server object first into the memory or can we directly sent reference to the client?

677


How primary key is implemented in Oracle?

906


java program with complete 4 oops concepts implemented example

1808


Highest level event class of the event-delegation model?

1311


What is a convertor?

843


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 ?

1288