Answered step by step
Verified Expert Solution
Link Copied!

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)

image text in transcribed

image text in transcribed

image text in transcribed

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

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions