Tech
Forums
Jobs
Books
Events
Videos
Conference
Annual Conference
Bcrypt
Ai Conference
Live
More
Interviews
Certification
Training
Career
Members
News
Blogs
Contribute
An Article
A Blog
A Video
An Ebook
An Interview Question
Register
Login
1
Answer
Memory lifetime between static and instance method.
Ask a question
Ask a question
Upload Source Code:
Select only zip and rar file.
Sakthikumar Thanavel
9y
385
1
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.
Post
Reset
Cancel
Answers (
1
)
Next Recommended Forum
Difference between API and Web Services
background color of table row