Q:

How to print two variables in same line

How to print string and integer value in same line. I can print in separate line 
daljeet
16
I want to print like this daljeet 16
public class hello {

    public static void main(String[] args) {

        String name = "daljeet";

        int age = 16;

        System.out.println(" " +name +age);

    }

    }

Program output
 daljeet16
How to get space between two variables ?

A:

public class hello {

 public static void main(String[] args) {

  String name = "daljeet";

  int age = 16;

  System.out.println(name + " " + age);
 }
}

