6 years ago in Java Classes And Methods

What is the return type of a method that does not returns any value?

[A] int
[B] float
[C] void
[D] double
Loading...
Next Question

Overall Stats

Attempted 293
Correct 174
Incorrect 22
Viewed 97

Answers

Guest
Guest
Mina Aitlhaj
Mina Aitlhaj - 6 days ago

Mina Aitlhaj from Casablanca, Morocco is saying void is correct answer

Bharath
Bharath - 2 months ago

Bharath from Hyderabad, India is saying void is correct answer

shubham adne
shubham adne - 4 months ago

shubham adne from Pune, India is saying void is correct answer

noora k
noora k - 6 months ago

noora k from Abu Dhabi, United Arab Emirates is saying void is correct answer

Shams Alden Alali
Shams Alden Alali - 6 months ago

Shams Alden Alali from Amman, Hashemite Kingdom Of Jordan is saying void is correct answer

Related Questions

String in Java is a?

  • [A] class
  • [B] object
  • [C] variable
  • [D] character array

Which method can be defined only once in a program?

  • [A] main method
  • [B] finalize method
  • [C] static method
  • [D] private method

Which of these statement is incorrect?

  • [A] All object of a class are allotted memory for the all the variables defined in the class.
  • [B] If a function is defined public it can be accessed by object of other class by inheritance.
  • [C] main() method must be made public.
  • [D] All object of a class are allotted memory for the methods defined in the class.