P
Q. What is the output of this program?
public class Result { public static void main(String args[]) { int p , q = 1; p = 20; if(p != 20 && p / 0 == 0) System.out.println(q); else System.out.println(++q); } }
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 purpose of the "protected" access modifier in Java inheritance?
Q. Which of these data tupe can be used for a method having a return statement in it?.
Q. What will be the output for the below code ?
Q. Which of the following declares an abstract method in an abstract Java class?
Q. Which are the methods used to parse string values to the respective data types in Java?
Discusssion
Login to discuss.