2. Write a interface "Car" with the following methods
void setName(String)
String getName()
void setColor(String)
String getColor()
void setModel(long)
long getModel()
Answer / suresh sa
interface car{
void setName(String s);
String getName();
void setColor(String color);
String getColor();
void setModel(long model);
long getModel();
}
I Think u r trying to create getter and setter fields for
the above parameters better go for POJO, rather than going
for interface
| Is This Answer Correct ? | 1 Yes | 0 No |
What is the Spring2.5 MVC Navigation flow?
please mail me the interview question based on java/j2ee
what is difference between web server and application server?
whatis arguments &what is default argument
What do you understand by synchronization? Why is it important?
my interviewer asked me what technical specification you used how to answer that question
Explain JSP life cycle?
What is the servletcontext listener and what is JspContext and page context pls tell in simple words.
What are the differences between the java collection and the java list? : java collections
waht are architecture of web application?
What are the types of java collections? : java collections
What is IOC in spring?