Java source code examples

Java source code samples. Java code examples.

Create an object of a class

0 votes Vote!!

We can create an object of a class using the new operator

public class Util {
	public static void main(String[] args) {
		Thread t = new Thread();
	}
}
  • Share/Bookmark

Tags: General

Discuss This Code