Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
1
Reply
Memory lifetime between static and instance method.
Sakthikumar Thanavel
Jun 1 2015 8:09 AM
360
Reply
Hi friends,
I need one clarification regarding static method. If am i create static method in the class when this memory release?
Eg:
public class A
{
public static int Add(int a,int b)
{
return a+b;
}
}
Suppose, If i create instance the method, when it will release the memory?
Eg:
If am i create static method in the class when this memory release.
Eg:
public class A
{
public int Add(int a,int b)
{
return a+b;
}
}
Which is best in memory.
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Difference between API and Web Services
background color of table row