Answered step by step
Verified Expert Solution
Question
1 Approved Answer
46 What is the output of the folowing code? public class Test public static void mainstringO args) l String sl new Strang(Java); String s newSt
46 What is the output of the folowing code? public class Test public static void mainstringO args) l String sl new Strang(Java); String s newSt System out print((s1 s2 (st equals(s20). A false false C B true true C. false true D, true false Encapsulation means CA that data fields should be declared private that a class can extend another class r C. that a variable of supertype can refer to a ubtype object C D, that a class can contain another class In OOP, a reference variable can reference a subtype object This is called CA encapsulation B. inheritance C, polymorphism D, abstraction
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored 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