Void class in Java

Void class in Java

Hi,

What is the purpose of Void class?

Thanks
View Answers

October 5, 2010 at 5:47 PM

Hi Friend,

It is an uninstantiable class that hold a reference to the Class object representing the primitive Java type void.

Thanks









Related Tutorials/Questions & Answers:
Void class in Java - Java Beginners
Void class in Java  Hi, What is the purpose of Void class? Thanks   Hi Friend, It is an uninstantiable class that hold a reference to the Class object representing the primitive Java type void. Thanks
void Java Keyword
void Java Keyword       The void is a keyword defined in the java programming language. Keywords... in java programming language likewise the void keyword indicates the following
Advertisements
The void keyword
The void keyword       The void is a keyword defined in the java programming language. Keywords... public class Myclass { public void doit
JAVA what is different between static block and public static void main(String a[]) method
JAVA what is different between static block and public static void main(String... void main(String a[]) method,we execute method without main method(by static block) why need of public static void main(String [])?   Static blocks
Understanding public static void main function
executes. When you execute a class with the Java interpreter, the runtime system... that the main() method is a class method. void indicates that the main... Understanding public static void main function  
Java class
Java class  What is the purpose of the Runtime class
Java nested class example
Java nested class example  Give me any example of Nested Class.   Nested Class: Class defined within another class is called nested class. Nested class is divided into two parts- 1.Static 2.Non-static Static
java class
java class  write a java program to display a msg "window closing" when the user attempts to close the window.(a) create a window class (b) create frame within the window class (c) extends window adapter class to display the msg
public static void main
. static-It indicates that the main() method is a class method. void- It indicates...public static void main  what is mean public static void main?  ... information, visit the following link: Understanding public static void main
java class
java class  please send me the answer of the question which i have send according of java class assoon as possible . Write a java program to display.... a. Create a window class. b. Create frame within the window class. c. Extend
where is the definition of keywords like this, int, void present in Java ? e.g the definition of methods are in API.
where is the definition of keywords like this, int, void present in Java ? e.g the definition of methods are in API.  where is the definition of keywords like this, int, void present in Java ? e.g the definition of methods
Abstract class - Java Beginners
Abstract class  Why can use abstract class in java.?when abstract... void display(){ } public abstract void display1(); } public class win extends abs{ public void hai(){ } public void display1(){ } } class
class static - Java Beginners
class static  When do we declare a member of a class static?  Hi friend, public class HowToAccessStaticMethod{ int i; static int j; public static void staticMethod(){ System.out.println("you can access
ModuleNotFoundError: No module named 'void'
ModuleNotFoundError: No module named 'void'  Hi, My Python program is throwing following error: ModuleNotFoundError: No module named 'void' How to remove the ModuleNotFoundError: No module named 'void' error
what is the size of java class
what is the size of java class  Could anyone tell me how to find the size of the class given below. public class Sample { private int x; private int y; private char ch; public static void main(String[] args) { Sample
abstract class - Java Beginners
. e.g. abstract class A{ public abstract abs_value(); void show...abstract class  what exactly is abstract class and in which cases its... and if possible send simple java programs showing its use.  Hi friend
Java inner class and static nested class
Java inner class and static nested class  Java inner class and static nested class
java-wrapper class
java-wrapper class  dear people, may i know how to convert primitive data type into corresponding object using wrapper class with example please!!!   public class IntToIntegerExample { public static void
Java Class Size
Java Class Size  How to determine size of java class
Java Nested Class
Java Nested Class         In Java programming language, when a class is defined within another... you execute a class with the Java interpreter, the runtime system starts
Java-Abstract Class - Java Beginners
Java-Abstract Class  Can a abstract class have a constructor ?When would the constructor in the abstract class be called ? Please give me with good...; Hi Friend, Yes. But Abstract class constructors will be called when its
Java inner class
Java inner class  What are inner class and anonymous class
java abstract class - Development process
java abstract class  how to save and run abstract class program... example, abstract class A { abstract void hi(); void hello() { System.out.println("This is a hello() method."); } } class B extends A { void hi
Abstract Class in Java
Abstract class in Java is a class that is declared using abstract keyword... of Abstract Method: public class SecondClass extends AbstractClass { void... abstract class AbstractClass { String name; public void setName
java Class - Java Beginners
java Class  Can anyone please explain what this code means? import... this class declaration means???????????? public class ST, Val> implements Iterable...(); } public void put(Key key, Val val) { if (val
Java Abstract Class Example
Java Abstract Class Example In this section we will read about the Abstract class. Abstract class in Java is a class which is created for abstracting... class SecondClass extends AbstractClass { void display
class method in java
class method in java  How to write a class method in Java?   You must read Java - Class, Object and Methods in Java
Java dictionary class
Java dictionary class  What is the Dictionary class
Java adapter class
Java adapter class  What is adapter class
Java Thread class
Java Thread Class is a piece of the program execution Java has... It is created by extending the Thread class or implementing Runnable interface Java Thread Class Example public class thread1 extends Thread { @Override
java inner class - Java Beginners
java inner class  What is the difference between the nested class and inner class? Explain with suitable example.  Hi Friend, Differences: 1)Nested class is declared inside another class with the static keyword
Desgining a Class - Java Beginners
Desgining a Class  Design a class named ?DBList? having the following data members and member functions : Class Name : DBList Data Members.... Member functions: DBList( ) : constructor to initialize the start void insert
Example of HashMap class in java
Example of HashMap class in java. The HashMap is a class in java collection framwork. It stores values in the form of key/value pair. It is not synchronized
Java class file
Java class file  How do i open a java class file using eclipse
java: implement a class queue
java: implement a class queue  Implement a class Queue which supports the following operations: boolean isEmpty() Returns true if the queue...-empty queue and returns it. void push(int o) Inserts the argument o
Robot class - Java Beginners
the package java.awt.event.* in your java code.The class InputEvent is in this package...! import java.lang.*; import java.awt.*; public class Robot04{ public static void main(String[] args) throws AWTException
Inner Class - Java Beginners
Inner Class  Hi, I have the following question. class Outer{ class Inner{ } public static void main(String[] args) { Outer.Inner... modifier of Inner class as "private" i.e., private class Inner{ } then after
java anonymous class
java anonymous class  Can an anonymous class be declared as implementing an interface and extending a class
java class - Java Interview Questions
java class  What is the speciality of class? what is the use... having same name,same parameters and same return types of a super class in its subclass. For ex- class A { int i; A(int a, int b) { i = a+b; } void add
abstract class and overriding - Java Beginners
friend, Abstract class : In java programming language, abstract classes... void abs_value(); } public class B extends A{ public void abs... interface class A{ void abs_value(); } public class C implements
MovieRating class - Java Beginners
the movie rating. 12.Create a MovieRating class that contains a private map... the class is instantiated. Also include a method which takes two parameters, rating... class to determine whether the child can watch the movie. 14.Add
converting java class to java fx class
converting java class to java fx class   i am working on a java project which would convert text to speech and speech to text. i have developed a java file that would work for text to speech. it is working fine as a .java file
java object class methods
java object class methods  What are the methods in Object class?  There are lots of methods in object class. the list of some methods are as- clone equals wait finalize getClass hashCode notify notifyAll
Java System class
Java System class  What is the purpose of the System class
abstact class - Java Beginners
abstact class  write a java program to implement an animal abstact class
Java math class
Java math class  Can you instantiate the Math class
java Math class
java Math class  Why are the methods of the Math class static
Java file class
Java file class  What is the purpose of the File class
Java abstract class
Java abstract class  Can an abstract class be final
thread class - Java Beginners
the following code: class Incrementor extends Thread{ int cnt1 = 0; boolean done = false; Decrementor decrementor; public void run() { while(!done...(); } catch (InterruptedException e) { } } } } public void setDecrementor

Ads