R
Q. What is the output for the below code? class A{ int k; boolean istrue; static int p; public void printValue(){ System.out.print(k); System.out.print(istrue); System.out.print(p); } } public class Test{ public static void main(String argv[]){ A a = new A(); a.printValue(); } }
Global and static variable need not be initialized before use. Default value of global and static int variable is zero. Default value of boolean variable is false. Remember local variable must be initialized before use.
You must be Logged in to update hint/solution
Q. What is the output of the below Java program with arrays?
Q. The operator sign ‘|’ is used for Bitwise
Q. Through the design mode of a builder tool, we use ___ or ____ to customize the bean.
Q. What is the output of a Bitwise AND (&) operation if one of the inputs/operands is 0?
Q. Purpose of Static Factory Method?
Discusssion
Login to discuss.