Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: John Cooper   on Feb 28 In Java Category.

  
Question Answered By: Varick Fischer   on Feb 28

Are you realy, realy sure that it doesn't make a default constructor?

public class  Test {
public static void main(String[] args) {
Test t = new Test();
t.helloWorld();
}
public void helloWorld(){
System.out.println("hi");
}
}

output ->
hi
Process terminated with exit code  0

Share: