B
Q. What will be the output of the following Java code? class Output { public static void main(String args[]) { double x = 3.14; int y = (int) Math.floor(x); System.out.print(y); } }
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. In Java, can a subclass access protected members (fields and methods) of its superclass?
Q. What is the output for the below code ?
Q. Which of this statement is incorrect?
Q. Which of the following is not a wrapper class
Q. What will be the output of the following Java code?
Q. What happens when a subclass tries to override a static method from the superclass in Java?
Discusssion
Login to discuss.