Advertisement
Dprogrammed1

java ques 52

Mar 28th, 2019
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.50 KB | None | 0 0
  1. public class Test
  2. {
  3.     public Test()
  4.     {
  5.         System.out.printf("1");
  6.         new Test(10);
  7.         System.out.printf("5");
  8.     }
  9.     public Test(int temp)
  10.     {
  11.         System.out.printf("2");
  12.         new Test(10, 20);
  13.         System.out.printf("4");
  14.     }
  15.     public Test(int data, int temp)
  16.     {
  17.         System.out.printf("3");
  18.          
  19.     }
  20.      
  21.     public static void main(String[] args)
  22.     {
  23.         Test obj = new Test();
  24.          
  25.     }
  26.      
  27. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement