Looking for PSOOP LAB ISE QUIZ 2024-25 test answers and solutions? Browse our comprehensive collection of verified answers for PSOOP LAB ISE QUIZ 2024-25 at moodle.spit.ac.in.
Get instant access to accurate answers and detailed explanations for your course questions. Our community-driven platform helps students succeed!
What is the output of the below Java program?
public class TestingConstructor{
void TestingConstructor()
{
System.out.println("Amsterdam");
}
TestingConstructor()
{
System.out.println("Antarctica");
}
public static void main(String[] args)
{
TestingConstructor tc = new TestingConstructor();
}
}
What will be the output?
. Which of the following is a exception?
What is encapsulation in OOP?
What does the following code print?
public class Test {
public static void main(String[] args) {
float f = 1.0f;
double d = f / 0;
System.out.println(d);
}
}
A. Compilation Error B. ArithmeticException C. 0.0 D. Infinity