Core Java Question:
Give the difference between the println method and sqrt method?
Answer:
Println method operates on the object system.out and has the value which should be printed namely y. sqrt method is a static method. It does not operate on any object. It has the number stored in x for which the square toot should be found out.
Previous Question | Next Question |
Explain about Java assignment statement? | Explain about strings in Java? |