J
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(); } }
No solution found for this question.
Add Solution and get +2 points.
You must be Logged in to update hint/solution
Be the first to start discuss.
Q. What is the output of following Java Program?
Q. Which of the following is used for implementing inheritance through class?
Q. What is a deadlock in Java?
Q. What is the purpose of the "finally" block in Java exception handling?
Q. Which of these keywords are used for the block to be examined for exceptions?
Q. When is the finalize() method called?
Q. What type of constructor is used to provide different values to the distinct objects?
Discusssion
Login to discuss.