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

Write a program to find the greatest of three numbers in java?

0 Answers  


How to solve the problem of generating the unique hash keys with hash function?

0 Answers  


can we override the main() method in java????

3 Answers   Vimukti Technologies,


What is parameter example?

0 Answers  


Explain the importance of join() method in thread class?

0 Answers  


What is a java applet? What is an interface?

0 Answers  


How will you override default serialization mechanism in java

2 Answers  


What is casting?

3 Answers  


What is multi level inheritance in java?

0 Answers  


justify c is portable

1 Answers  


what is request dispatcher and how does it work?

2 Answers   CTS,


What is complexity and its types?

0 Answers  


Categories