Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package memory.allocation;
- public class ClassA {
- private static ClassB objectB;
- public static void main(String... args) {
- objectB = new ClassB();
- }
- }
- class ClassB {
- private int number;
- public ClassB(int number) {
- this.number = number;
- }
- }
Add Comment
Please, Sign In to add comment