I have created a class, one instance variable is created inside main method and another is outside.
// calling a method from constructor
public class Raw4 {
public static void main(String[] args) {
Raw4 r = new Raw4();
}
Raw4 r1 = new Raw4();
}