CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS J2EE JAVA DETAILS
Question :
What is the difference between attribute and parameter ?
Category Java Interview Questions
Rating (4.9) By 19 users
Added on 5/20/2008
Views 1158
Rate it!
Answers:



attribute - is a member of a class
parameter - is a member of a method signature

argument - is used to send values to the method from the caller.
parameter - is a place holder for the incoming values for a method from the caller.



 Posted by: Saravana Pandian    

Contact Saravana Pandian  Contact Saravana Pandian

Attribute is the value we pass to the calling function. Parameter is the list of variables we use in a function.



 Posted by: meena    

Contact meena  Contact meena

1. Attributes are of the following types:Session attribute,Request attribute, Context attribute. Parameters are of the following types:Servlet parameters,Request parameters,Context parameters.
2. The attributes are set using the setAttribute() method. Parameters are set in the deployment descriptor using the <param-name> and <param-value> elements.
3. Attributes are obtained using the getAttribute(String name) method. Parameters are obtained using the getParameter(String name) method.
4. The attributes are returned as Objects.The parameters are returned as Strings.



 Posted by: Anirban Das    

Contact Anirban Das  Contact Anirban Das


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
What is the difference between length and length() ?
View Answer
What is the difference between concat and append?
View Answer
What is the difference between Java and J2EE? Is J2EE advanced version of Java?
View Answer
How do u create objects at runtime?
View Answer
What is a string Handling? How to use it? what is difference b/w Event handling?
View Answer
What is multi threading ?
View Answer
What are the main differences between
jdk1.4 n jdk1.5?
View Answer
Given A = 1, B = 2, C = 3, D = 4 ?? Z = 26, write a java standalone
program to encode the word ?TELEPHONE? into numbers.
View Answer
Write a java standalone program / method to take out all the special
characters in the string provided below.
//ASCII a ? z (97 ? 122)
String sSENTENCE = ?This!is^a$t*e)s|t?;
View Answer
Why pointers are not used in java?
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL Java Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/15170/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.72