Answered step by step
Verified Expert Solution
Question
1 Approved Answer
What will be the output of the program? public class Test { private static float() f = new float[2]; public static void main (String[] args)
What will be the output of the program? public class Test { private static float() f = new float[2]; public static void main (String[] args) { System.out.println("f[0] = " + f[0]); 1 Select one a. Compile Error b. f[0] = 0 c. f[0] = 0.0 d. Runtime Exception What is subclass in java? Select one: a. Both above. b. None of the above. CA subclass is a class declared inside a class d. A subclass is a class that extends another class In which java oops feature one object can acquire all the properties and behaviours of the parent object? Select one: o a. None of the above . b. Inheritance c. Polymorphism d. Encapsulation
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access with AI-Powered Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started