- 2
What do I fill in the blanks with?
public_____ A { public void test() { System.out.println("Hi"); } } class B { public static void main(String args[ ]) { ______ obj =_____ A(); obj. _______;
6 Antworten
+ 1
1. class
2. A
3.new
4.test()
0
public
A {
public void test() {
System.out.println("Hi");
}
}
class B {
public static void main(String args[ ]) {
obj =
A();
obj.
;
}
}
Ans-1. class
2. A
3.new
4.test()
- 1
Please don't use the q&a to get lazy with answers
- 1
I am extremely tired and stuck on questions and I really need to get this done because it is due today, so I apologize.
- 1
1. class, 2. class, 3. new, 4. test ()
- 1
thank you