any other way to print the text without using
System.out.println() in java?

Answer Posted / sathish

System.out.write("text".getBytes());

System.out.format("%s", "text");

Is This Answer Correct ?    20 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

what is thread? What are the high-level thread states? Or what are the states associated in the thread? : Java thread

769


What is string syntax?

816


Write a code to create a trigger to call a stored procedure

744


What is lifetime variable?

740


What are constructors in java?

777


Can we convert integer to string in java?

829


Can we override private methods?

770


How to make a class or a bean serializable?

739


What is string length in java?

706


How does multithreading take place on a computer with a single cpu?

784


What does it mean that a method or field is “static”?

731


What is the use of beaninfo?

801


What is the name of the java compiler?

786


What is the difference between replace and replace all?

705


What is finalize method?

828