Java Question About Default Constructor
Is this correct: A default constructor will automatically be provided given the code below. |
/** * * @author javadb.com */ public class Main { public int first() { return 1; } public int second() { return 2; } public static void main(String[] args) { Main main = new Main(); System.out.println("First: " + main.first()); System.out.println("Second: " + main.second()); } } |
A. true B. false |
Bookmark:
Search for code examples on this site
