You have a class with one private constructor:
package org.demo.example;
public class MyClass {
private MyClass() { }
private void method1() { }
public void method2() { }
}Select all correct statements.
You have a class with one private constructor:
package org.demo.example;
public class MyClass {
private MyClass() { }
private void method1() { }
public void method2() { }
}Create a free account to access the full topic