What is a void in java?



What is a void in java?..

Answer / Dalip Kumar

In Java, void is a special data type that represents the absence of any data. It's used to indicate that a method does not return any value.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

Why are the objects immutable in java?

1 Answers  


When is an object in the mean to garbage collection?

3 Answers  


What are listeners in java and explain ?

2 Answers   TCS,


What are the types of casting?

1 Answers  


How to excute - Interface - Inner class- method can any one tell how to execute/ call this main method public interface abc { static int i=0; void dd(); class a1 { a1() { int j; System.out.println("inside"); }; public static void main(String a1[]) { System.out.println("in interfia"); } } }

1 Answers  


What is meant by class loader? How many types are there? When will we use them?

1 Answers  


Java is pass by value or pass by reference? Explain

1 Answers  


What is the difference between the jdk 1.02 event model and the event-delegation model introduced with jdk 1.1?

1 Answers  


Why collection doesn’t extend cloneable and serializable interfaces?

1 Answers  


how to make hashmap object as synchronized object?

2 Answers   BOB Technologies,


Infinite loop using while ?

4 Answers  


What is memory leak and how does java handle it?

1 Answers  


Categories