Difference between System.out.printf and System.out.println ?
Javasearch.buggybread.com

Search Interview Questions


 More than 3000 questions in repository.
 There are more than 900 unanswered questions.
Click here and help us by providing the answer.
 Have a video suggestion.
Click Correct / Improve and please let us know.
Label / Company      Label / Company / Text

   



Interview Questions and Answers

 Q1. Difference between System.out.printf and System.out.println ?Core Java
Ans. println prints an additional end of line whereas printf doesnt.

 Help us improve. Please let us know the company, where you were asked this question :   

   Like         Discuss         Correct / Improve     System class  Streams  Input Output  println  printf


Related Questions

  What are various types of Class loaders used by JVM ?
  What is a Deadlock ?
  What is the difference between time slicing and preemptive scheduling ?
  Difference between Process and Thread ?
  Will the static block be executed in the following code ? Why ?
  Which of the following syntax is correct ?import static java.lang.System.*;or static import java.lang.System.*;
 What will happen if we call perform(null) ?

public void perform(Object obj) {
System.out.println("Object");
}

public void perform(Integer int) {
System.out.println("Integer");
}
 What will be the output of following code ?

System.out.println((int)'a');
 What will be the output of

System.out.println((Integer)'a');
 What is System.in in Java ?



Help us and Others Improve. Please let us know the questions asked in any of your previous interview.

Any input from you will be highly appreciated and It will unlock the application for 10 more requests.

Company Name:
Questions Asked: