IN JAVA 38 What is the return type of the String class compa

IN JAVA

38.   What is the return type of the String class compareTo( ) method?

A) boolean B) int C) String D)coid

39.    What is the return type of the constructor method of a class?

A) void B) Object    C) no return type is allowed   D) int

40.    A class can have many different constructor methods as long as the names are different.

A)true     B) false

Solution

38.   What is the return type of the String class compareTo( ) method?

Answer: B) int

39.    What is the return type of the constructor method of a class?

Answer: C) no return type is allowed

40.    A class can have many different constructor methods as long as the names are different.

Answer: B) false

IN JAVA 38. What is the return type of the String class compareTo( ) method? A) boolean B) int C) String D)coid 39. What is the return type of the constructor m

Get Help Now

Submit a Take Down Notice

Tutor
Tutor: Dr Jack
Most rated tutor on our site