JAVA CODE SNIPPET-3

Java Code Snippet-3

public class Techyield {


 private static int p = test();

 static int test()
 {
  return 99;
 }


 public static void main(String[] args) {
  // TODO Auto-generated method stub
  System.out.println("value of p"+p);
  System.out.println(++p);
  System.out.println(5+p--+2);
  System.out.println(++p*10);
 }

}

Select an answer





Please comment below if you have any doubts.

No comments:

Post a Comment

Featured Post

H1B Visa Stamping at US Consulate

  H1B Visa Stamping at US Consulate If you are outside of the US, you need to apply for US Visa at a US Consulate or a US Embassy and get H1...