In this blog i will solve Problem-I (Welcome to java) from Hackerrank Java Preparation.
So let's get done with this, our given problem statement is as follows:

Welcome to the world of Java! In this challenge, we practice printing to stdout.
The code stubs in your editor declare a Solution class and a main method. Complete the main method by copying the two lines of code below and pasting them inside the body of your main method.
System.out.println("Hello, World.");
System.out.println("Hello, Java.");
Input Format:
There is no input for this challenge.
Output Format:
You must print two lines of output:
Print Hello, World. on the first line.
Print Hello, Java. on the second line.
Sample Output
Hello, World.
Hello, Java.
Here comes the solution:

public class Solution {
public static void main(String[] args) {
System.out.println("Hello, World.");
System.out.println("Hello, Java.");
}
}
Output:
So, we have solved and successfully verified the test cases of the Problem-I and i will continue to solve all the problems on this domain.