Darano

2 ways

Dec 21st, 2018
248
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.29 KB | None | 0 0
  1. ###################    WAY ONE ########################
  2. public class A{
  3.     final int a;
  4.     final String b;
  5.  
  6.     public A(){
  7.         this.a = 4;
  8.         this.b = "hello";
  9.     }
  10. }
  11.  
  12. ###################    WAY TWO ########################
  13.  
  14. public class A{
  15.     final int a = 4;
  16.     final String b = "hello";
  17.  
  18. }
Advertisement
Add Comment
Please, Sign In to add comment