Core Java Question:

Give the difference between the println method and sqrt method?

Tweet Share WhatsApp

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.

Read All 17 Core Java Questions
Previous QuestionNext Question
Explain about Java assignment statement?Explain about strings in Java?