1. Engineering
  2. Computer Science
  3. what is the output of this program in java package...

Question: what is the output of this program in java package...

Question details

What is the output of this program in java?

package test; class A { String sdlc; A(String sdlc) { this.sdlc = sdlc; this.sdlc = sdlc.toLowerCase(); } } class B extends A { public B(String sdlc) { super(sdlc); this.sdlc.toUpperCase(); } } public class Main { public static void main(String args[]) { A obj = new B("Requirement analysis, Design, Development, Testing, Implementation, Maintenance"); System.out.println(obj.sdlc); } }

Solution by an expert tutor
Blurred Solution
This question has been solved
Subscribe to see this solution