any other way to print the text without using
System.out.println() in java?
Answer Posted / chitu
system.err prints the error, return statements with overrididing the toString method can print the statments
void toString()
{
return cn print this ;
}
| Is This Answer Correct ? | 9 Yes | 10 No |
Post New Answer View All Answers
What is finalize()?
Can we define static methods inside interface?
What are the different tags provided in jstl?
What is qms certification?
What is the effect of keeping a constructor private?
Give any two differences between C++ and java.
Explain the difference between the public, private, final, protected, and default modifiers?
What is garbage collection? Can it be forced to run?
Garbage collection in java?
How does compareto work in java?
What is the use of using enum to declare a constant?
What does nullpointerexception mean?
Can we increase size of array?
Why does java have different data types for integers and floating-point values?
Explain inheritance in java?