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

Explain the selection sort algorithm?

0 Answers   Hexaware,


What is this keyword used for?

0 Answers  


Is alive and join method in java?

0 Answers  


Why is the type for real numbers called double?

0 Answers  


Why does java doesnot support multiple inheritance?

5 Answers   TCS,






What exactly is methodology?

0 Answers  


What are static variables and functions?

0 Answers   Tech Mahindra,


What is the name of the java compiler?

0 Answers  


What is binary tree in java?

0 Answers  


What methods are used to get and set the text label displayed by a button object?

0 Answers  


If there are two notepad opened and working on it . is this a process or thread? computer based Live Example to differentiate between Thread , Process , and Multi tasking ?

3 Answers   TCS, Wipro,


Why do we need strings in java?

0 Answers  


Categories