Showing posts with label JAVA CODE SNIPPET-2. Show all posts
Showing posts with label JAVA CODE SNIPPET-2. Show all posts

JAVA CODE SNIPPET-2

Java Code Snippet-2

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 is "+p);
 }

}

Select an answer





Please comment below if you have any doubts.

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...