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 |
Can you access non static variable in static context?
How to access a variable if it is declared as private?
Which object oriented concept is achieved by using overloading and overriding?
Where to store local variables?
What are different data types?
What is the purpose of default constructor?
When do we use synchronized methods in java?
What are different types of expressions?
what is default constructor and parameterised constructor with example?
What is the purpose of void?
what is the need of the Ajax?
What is local declaration?