if already one foo is present in heap , will it create new foo again in heap?
            Asked
            
        
        
            Active
            
        
            Viewed 80 times
        
    -5
            
            
        - 
                    Why don't you just try it out? – Ben Mar 21 '18 at 10:27
- 
                    I thought that `===` was not a valid Java operator. – E_net4 Mar 21 '18 at 10:28
1 Answers
0
            
            
        Yes a new Object will create in heap java Because you have create a new Object of String using new keyword
 
    
    
        Birbal Singh
        
- 1,062
- 7
- 16
 
    