
public class MainClass { public static void main(String[] args) { System.out.println("Java"); } }

hi friend this is simple class of core java where you want to print the string Java at the console. You have simply created a class with name MainClass inside which a main() method is declared for performing the task of printing the string at console.
For more tutorials you can go through the following link Core Java Hello World Example
hope this may helpful for you.
If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.
Ask your questions, our development team will try to give answers to your questions.
