What is void data type?



What is void data type?..

Answer / Khursheed Alam

"In Core Java, 'void' is a special data type used for methods that do not return any value. Methods with the return type of void are typically used for performing actions rather than getting results."

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

How can we use primitive data types as objects?

1 Answers  


Explain the differences between public, private, protected and static?

4 Answers  


Every class extends object but why it is not possible for every object to invoke clone() method. ideally protected methods should be accessible from sub classes. isn't it?

2 Answers  


Is nullpointerexception checked or unchecked?

1 Answers  


Why java is object oriented?

1 Answers  


What are serialization and deserialization?

1 Answers  


What is a heavyweight component?

1 Answers  


Does a class inherit the constructors of its superclass in java programming?

1 Answers  


how to handle exceptions in core applications?

2 Answers   CSS,


Explain why wait(), notify() and notifyall() methods are in object class rather than in the reading class?

1 Answers  


Which is bigger double or float?

1 Answers  


Why java is platform independent? Explain.

1 Answers  


Categories