Home TechnologyProgrammingJava Subscribe to RSS

What Is The Difference Between Print And Println In Java?

Answer Question

2 Answers - Sort by: Date | Rating

    Print is just printing the line,while println is printing and the coming statement gets printed in the next line.
    0 0

    Nlgopi 

    answered 7 months ago

      I am using Hibernate,
      and while creating my configuration object I am first checking whether that object is null in a if clause
      and then inside if when I am using the System.out.print(); statement, my programs execution gets halted at that very moment

      I have replaced System.out.print() with System.out.println() and it is now working fine

      I dont know the reason why?
      0 0
      Guest

      Guest 

      answered 3 months ago

        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