Lesson 1 of 34
உங்கள் முதல் Java ProgramYour First Java Program
7 min 20 XP
ஒவ்வொரு Java program-ம் ஒரு class-க்குள் இருக்கும். Program, main() method-லிருந்து தொடங்கும். திரையில் காட்ட System.out.println() பயன்படுத்துகிறோம். கீழே உள்ள program-ஐ Run செய்து பாருங்கள்.
Every Java program lives inside a class. The program starts running from the main() method. We show text on the screen with System.out.println(). Run the program below.
Example: edit me and press Run
Press Run to see the result here.ஒவ்வொரு statement-ம் ; (semicolon) உடன் முடிய வேண்டும். Text-ஐ " " quotes உள்ளே எழுதுகிறோம், இதை String என்கிறோம். { } brackets, code-ஐ குழுக்களாகப் பிரிக்கின்றன.
Every statement must end with a ; (semicolon). Text goes inside " " quotes and is called a String. The { } braces group code into blocks.
Example: edit me and press Run
Press Run to see the result here.println() வரி முடிவில் புதிய வரிக்குச் செல்லும். print() அதே வரியில் தொடரும். Java-ல் capital letters முக்கியம்: System, String எப்போதும் capital S.
println() moves to a new line after printing; print() stays on the same line. Java is case-sensitive: System and String always start with a capital S.