Write a Java statement to create an object “Computer” of class “Subject”.
Answers
Answered by
2
Explanation:
// creating object of public class Test // consider class Test present in comp.p1 package Test obj=
(Test) class. forName("com.p1. Test"). newlnst Using clone() method: clone() method is present in object class. It creates and returns a copy of the subject.
PLEASE MARK BRAINLIST PLEASE MARK BRAINLIST
Similar questions