Sigleton vs Class with static method

Dinesh Pun
Dinesh Pun
8 Points
4 Posts
public class A{
    public static void method(){
        Object object=new Object();

public class B{
    public void method(){
        Object object=new Object();

1.Class B is singleton class
2.Now I want to access method which is in Class A and Class B.
3.which is better strategy in case of memory usage?

Views: 8171
Total Answered: 0
Total Marked As Answer: 0
Posted On: 05-Nov-2015 23:21

Share:   fb twitter linkedin


Active User (2)

 Log In to Chat