What is void in java?



What is void in java?..

Answer / Sushmita Kesari

"In Java, 'void' represents the absence of a return value. It is used as the return type for methods that do not return any value."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Explain cookies?

2 Answers   Canon,


write a program to create an arraylist with string(add,remove) operation.and value should be enter through keyboard.

0 Answers   Axcend,


This is my code i have a doubt class ab implements a,b { public void add() { System.out.println("Hi") } } interface a { public void add(); } interface b { public void add(); } in this code i have two interface implemented in the class has same method.just i want to know which method of interface implemented in the class. interface a or interface b? confused me .

3 Answers  


What is procedure overloading?

1 Answers  


What is the difference between char and char *?

1 Answers  


What is a flag variable?

1 Answers  


What’s the difference between the methods sleep() and wait()?

1 Answers  


Is treeset sorted in java?

1 Answers  


Difference between this() and super() ?

1 Answers  


what is the difference between yielding and sleeping? : Java thread

1 Answers  


Write a program that takes a 5 digit number and calculates 2 power that number and prints it.

1 Answers  


What is default exception handling in java?

1 Answers  


Categories