for example we are login into the irctc server from there it
will go to the selected bank and deduct amount and come back
to the irctc. so if we are developing this in java means
will it be run on the same session. but as per my knowledge
bank is separate and irctc is separate URL's so it will use
two different sessions then how it is maintaining same
session through out application and even it uses the payment
gateway? how it is working can any one help me on that??
I am newbie in J2EE & looking for strong basic behind each
concept as,
Why do we use private access specifier before each variable
of
type property bcoz ultimately to access it outside the class
we use public method as getter & setter ?
If we use getter & setter to access it outside the class so
better we make variable as public so that it is easily
available outside of the class...
Please guide me why do we use as private ????
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...
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".
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 ?
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?
338
what is direct link to download swing ebook,applet,ejb,core
java
363
I Want build and release interview questions
268
for example we are login into the irctc server from there it
will go to the selected bank and deduct amount and come back
to the irctc. so if we are developing this in java means
will it be run on the same session. but as per my knowledge
bank is separate and irctc is separate URL's so it will use
two different sessions then how it is maintaining same
session through out application and even it uses the payment
gateway? how it is working can any one help me on that??
324
what is meant by proxy server
1023
how to run servlet program between two computer through
internet ?
In DAO we are writting sql queries , how it is possible with
creating and closing database connections.
243
you are to choose between two procedures,both of which
copute the minimum value in
an array of integers.one procedure returns the smallest
integer if its array argument is empty.
the other requires a nonempty array.which procedure should
you choose and why?
405
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 .
to update a batch in a table in jdbc which method of
statement object is used
313
I am newbie in J2EE & looking for strong basic behind each
concept as,
Why do we use private access specifier before each variable
of
type property bcoz ultimately to access it outside the class
we use public method as getter & setter ?
If we use getter & setter to access it outside the class so
better we make variable as public so that it is easily
available outside of the class...
Please guide me why do we use as private ????