Difference in the use of print, println, and printf.

Answers were Sorted based on User's Feedback



Difference in the use of print, println, and printf...

Answer / nashiinformaticssolutions

The items can be printed using print, println, or printf, but print prints every element while keeping the cursor in the same line. The cursor is moved to the next line via println. Additionally, we can use format identifiers with printf.

Is This Answer Correct ?    0 Yes 0 No

Difference in the use of print, println, and printf...

Answer / glibwaresoftsolutions

The items can be printed using print, println, or printf, but print prints every element while keeping the cursor in the same line. The cursor is moved to the next line via println. Additionally, we can use format identifiers with printf.

Is This Answer Correct ?    0 Yes 0 No

Difference in the use of print, println, and printf...

Answer / glibwaresoftsolutions

The items can be printed using print, println, or printf, but print prints every element while keeping the cursor in the same line. The cursor is moved to the next line via println. Additionally, we can use format identifiers with printf.

Is This Answer Correct ?    0 Yes 0 No

Difference in the use of print, println, and printf...

Answer / glibwaresoftsolutions

The items can be printed using print, println, or printf, but print prints every element while keeping the cursor in the same line. The cursor is moved to the next line via println. Additionally, we can use format identifiers with printf.

Is This Answer Correct ?    0 Yes 0 No

Difference in the use of print, println, and printf...

Answer / hr@tgksolutions.com

The items can be printed using print, println, or printf, but print prints every element while keeping the cursor in the same line. The cursor is moved to the next line via println. Additionally, we can use format identifiers with printf.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How to reduce flicking in animation?

3 Answers   TCS,


when System.out.println("") is executed what happens in the back ground?

2 Answers  


Write a program to find the whether a number is an Armstrong number or not?

0 Answers   Aspire, Infogain,


Explain about GridBag Layout?

1 Answers  


What is the difference between multiple processes and multiple threads?

0 Answers  


Write program to print Hello World and print each character address in that string and print how many times each character is in that string? Ex: H: 0 & 1 e:1 & 1 l :2,3,8 & 3 o:4,6 & 2 w:5 & 1 r: 7 & 1 d 9 & 1

7 Answers   Huawei, IBM,


What is a JAR file?

0 Answers  


What is the type of lambda expression?

0 Answers  


What is the final blank variable?

0 Answers  


What is string buffer?

0 Answers  


What is the difference between Byte stream and Charecter Stream?

2 Answers   Tarang Software,


public class Base { public void myMethod(int a,intb) {} } // Uses myMethod and then hides it. public class DerivedOne extends Base { private void myMethod(int a,int b); } will this compile or not .yes or no. why

2 Answers  


Categories