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); } }
Static variable should be called with class name. Compile time error Value of p is 99 Program will compile but no output.
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...
No comments:
Post a Comment