Home TechnologyProgrammingJava Script Subscribe to RSS

What Is The Difference Between System.out.println And System.out.print In Java?

I want the exact difference based on standard output device and any other thing if u can the difference between them in programing and how they are used.

Answer Question

3 Answers - Sort by: Date | Rating

    Output of both statements is different as when System.out.println is used, the out put is shown in next line while in case of System.out.print the output is visible on the same line. 'ln' is basically used to start a new line.

    1 0

    Sky123 

    answered 2 years ago

      System.out.println will print given line in a new line form previous line and system.out.print will not print in new line.
      Aasharm
      0 0
      Guest

      Guest 

      answered 4 months ago

        Both commands are same in some respect, but System.out.println will insert a new line charecter "n" at the end of the input text.
        0 0

        Sat4star 

        answered 1 month ago

        More

        More

           
           

          Ask a Question via Twitter

          Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

          Blurtit Store

          Get T-shirts, hoodies, caps and more at the Blurtit store

          Blurtit International