Welcome To Java | Java Programming in मराठी | Pankaj Mehta
In this video, we are going to see our very first program i.e "WELCOME TO JAVA". Java System.out.println() is used to print an argument that is passed to it. The statement can be broken into 3 parts which can be understood separately as: ✔ System: It is a final class defined in the java.lang package. ✔ out: This is an instance of PrintStream type, which is a public and static member field of the System class. ✔ println(): As all instances of PrintStream class have a public method println(), hence we can invoke the same on out as well. This is an upgraded version of print(). It prints any argument passed to it and adds a new line to the output. We can assume that System.out represents the Standard Output Stream. Difference between System.out.print() and System.out.println() ✔ System.out.print(): This method prints the text on the console and the cursor remains at the end of the text at the console. The next printing takes place from just here. This method must take atleast one parameter else it will throw an error. ✔ System.out.println(): This method prints the text on the console and the cursor remains at the start of the next line at the console. The next printing takes place from the next line. This method may or may not take any parameter. To stay connected with us, follow us on, Instagram - https://www.instagram.com/mcomputers.ich Facebook - https://www.facebook.com/mcomputers.1998 Keep learning and Keep coding!!! Thank You !! #Java_in_marathi #Java #Java_programming
Download
0 formatsNo download links available.