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

Is string an object?

883


What is a newline character in java?

811


What is thread count in java?

754


Which container method is used to cause a container to be laid out and redisplayed in java programming?

882


design an lru cache in java?

785


How do you create immutable object in java?

818


What do you understand by weak reference?

770


Why parameters should be passed by reference?

734


What is charat ()?

743


Why bytecode is called bytecode?

836


What are measurable parameters?

809


Is null a value?

803


What are the advantages of exception handling?

825


Is singleton class immutable?

744


What does the “static” keyword mean?

846