Home Answers Viewqa Java-Beginners Void class in Java

 
 


Deepak Kumar
Void class in Java
1 Answer(s)      2 years and 7 months ago
Posted in : Java Beginners

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 Pages:
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
The void keyword
The void keyword       The void is a keyword defined in the java programming language. Keywords... is the syntax that displays how to use the keyword void.  public class
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
Static keyword in public static void main
: class UseStatic { static int a = 3; static int b; static void meth(int x...Static keyword in public static void main  Hi, I have seen...://www.roseindia.net/java/learn-java-in-a-day/create-first-program.shtml Explanation
Understanding public static void main function
executes. When you execute a class with the Java interpreter, the runtime system... Understanding public static void main function       The public static void main function is important
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 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
What happen when we write static public void instead of public static void?
What happen when we write static public void instead of public static void?  Hi, What happen when we write static public void instead of public static void? Thanks   Hi, The program will compile first then run
What is Public static void main
in java using main method. class Helloworld { public static void main(String...; the class. In java everything is written  within the class so, when you run the java program on the command prompt , loader will load the class
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 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
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
Class, Object and Methods       Class : Whatever we can see in this world all the things... is termed as a class. All the objects are direct interacted with its class
Scanner class
Scanner class  import java.util.*; class Dd { public static void...; Here your code works fine..Which java version you are using? Actually Scanner class was introduced in java 5
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
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
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
coolection class
max & min method of collection class   Here is an example of ArrayList which finds the maximum and minimum value element from the ArrayList. Java... class i.e max() and min() respectively. import java.util.*; class
Class names don't identify a class - Java Tutorials
class Test { public static void main(String[] args) { System.out.println(new..., The output of the above class is as, C:\>java -cp .;directory2...Class names don't identify a class In JDK 1.2 the Sum Microsystems have added
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
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
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
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
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
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
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
Calculator class
for this generated file go to * Window - Preferences - Java - Code Style - Code Templates... type comment go to * Window - Preferences - Java - Code Style - Code Templates... class Calculator extends JFrame implements ActionListener { JTextField text
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
Java Nested Class
Java Nested Class         In Java programming language, when a class is defined within another... Virtual Machine executes. In other words, when you execute a class with the Java
Java Class Question?
Java Class Question?  b.Write an application that prompts the user... the user enters a selection.   import java.util.*; class Application { public static void main(String[] args) { double array
Defining a class - Java Beginners
, , , , , . We are required to design a class named ?Keith? having the following data... storing the number to be checked. Member Functions: void storenum() accepts... as defined above otherwise returns false. void findKeithNums(int x,int y
Java Date Class
class DateClassExample { public static void main(String[] args) { Scanner...Java Date Class  Hi Friend, I need to have a code to get the days between specific dates. Such if I enter 19 September 2011 to 21 September 2011
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
Search Class - Java Beginners
Search Class  Hi i have created a search class with 3 txtfield... the output to another form rather than the search class i created. I hava...*; /** * * @author alvtan */ public class SearchForm extends ShowGUI
class Math - Java Beginners
class Math  "Helo man&sir can you share or gave me a java code hope its ok?" Complete a program that asks the user a floating-point number (either... to you. public class MathFunction { public static void main(String s
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
Class SALE - Java Beginners
. import java.io.*; import java.util.*; public class SALE { public static void...Class SALE  A company sale 10 items at different rates and details of sales ( total amount) of each item are stored on weekly basis i.e.from Monday
java class string - Java Beginners
java class string  Write a program that reads three strings... : import java.io.*; public class ReadString { public static void main...!"); } } } For more information on Java visit to : http
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
Class in Java
Class in Java       In this section, we will discuss about java classes and its structure. First of all learn:  what is a class in java and then move on to its
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
The link to the outer class,java tutorial,java tutorials
(); } // Inner Class class Inner { void display() { System.out.println("...Nested Classes: Inner & Outer Class The classes which are defined within...; as Inner Class. The Class in which inner class resides are known as Outer Class
Abstract class and Interface - Java Magazine
Abstract class and Interface  Dear Sir, Please anyone help me........I wane exact difference between Abstract class and Interface.what... abstract class AbstractExample { public AbstractExample(){ System.out.println
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
abstract class and interface - Java Beginners
abstract class and interface  what is the need for an abstract class? when should we use an abstract class? when should we use interface instead of abstract class?   Hi friend, Abstract classes In java
Abstract Class in Java
Abstract class in Java is a class that is declared using abstract keyword... class SecondClass extends AbstractClass { void display..."); } } TestAbstractClass.java class TestAbstractClass { public static void main
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..."); } } TestAbstractClass.java class TestAbstractClass { public static void main
inner class - Java Interview Questions
Java Inner Class  How many classes we can create in an inner class... to the requirement there is no limit . In Java programming language, when a class is defined... class structure shows the way of using the nested class. Java Inner Class
Object Class Methods in Java
We are going to discus about Object Class Methods in Java. The java.lang.Object class is the root of the class hierarchy tree in JDE(java development environment). Every Java class extends the java.lang.Object class directly
Sub class of a previous java program
Sub class of a previous java program  Create a Faculty subclass... java program is this, import java.util.*; class EmployeeSalaries... to the Employee base class that simply outputs a message ?Cannot change this Employee?s status

Ask Questions?

If you are facing any programming issue, such as compilation errors or not able to find the code you are looking for.

Ask your questions, our development team will try to give answers to your questions.