Guest User

Untitled

a guest
Jan 22nd, 2019
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.27 KB | None | 0 0
  1. package memory.allocation;
  2.  
  3. public class ClassA {
  4. private static ClassB objectB;
  5.  
  6. public static void main(String... args) {
  7. objectB = new ClassB();
  8. }
  9. }
  10.  
  11. class ClassB {
  12. private int number;
  13.  
  14. public ClassB(int number) {
  15. this.number = number;
  16. }
  17. }
Add Comment
Please, Sign In to add comment