Core Java Question:

Download Job Interview Questions and Answers PDF

Give the difference between the println method and sqrt method?

Core Java Interview Question
Core Java Interview Question

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.

Download Core Java Interview Questions And Answers PDF

Previous QuestionNext Question
Explain about Java assignment statement?Explain about strings in Java?