Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Demo
- {
- public Demo()
- {
- System.out.println("From default constructor");
- }
- public static void main(String args[])
- {
- Demo d1 = new Demo();
- Demo d2 = new Demo();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement