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 sample = new Sample();
    sample.x = 1;
    sample.y = 2;
    sample.ch = 'a';

}

public void display() {
    System.out.println("Hi everyone");
}

}

please answer asap.

(Knapster)

View Answers









Related Tutorials/Questions & Answers:
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
Java Class Size
Java Class Size  How to determine size of java class
Advertisements
In Java how to get size of class and object?
In Java how to get size of class and object?  In Java how to get size of class and object
In Java how to get size of class and object?
In Java how to get size of class and object?  In Java how to get size of class and object
Difference in size of .java & its respective .class file
Difference in size of .java & its respective .class file  Hai, I had created & compiled a java class named sample.java. The size of sample.java is 340KB. Whereas the size of its respective class file sample.class is 137KB
What is Calendar class in Java?
What is Calendar class in Java?  Hi, What is Calendar class in Java? I want to learn about this class to make use of it in Java programs. Thanks   Hi, java.util.Calendar is an abstract class in Java and its static
what is block size in hadoop
what is block size in hadoop  Hi, How Hadoop stores files and what is block size in hadoop? Thanks   Hi, When file is sent to Hadoop... typical block size is 128MB which is configurable. It can be configured as system
what is block size in hadoop
what is block size in hadoop  Hi, How Hadoop stores files and what is block size in hadoop? Thanks   Hi, When file is sent to Hadoop... typical block size is 128MB which is configurable. It can be configured as system
what is the default buffer size for bufferedreader
what is the default buffer size for bufferedreader  Hi, I am writing a program in Java for reading the big text file. I want to know what is the default buffer size for bufferedreader? Is there any example of reading the big
What is inner class in Java? - Java Beginners
What is inner class in Java?  Hi, Explain me inner classes in Java. What is the use of inner classes? Give examples of inner classes in Java...://www.roseindia.net/java/master-java/inner.shtml Uses: Non-static inner class
What is nested class in Java with Example?
What is nested class in Java with Examples and explanations? In Java.... In Java a class within a class is called nested class. For example: public class...; }  } So, above is an example of Nested class in Java. The main benefits
What is nested class in Java with Example?
What is nested class in Java with Examples and explanations? In Java programming language Nested class is an important feature. You can use.... In Java a class within a class is called nested class. For example: public class
What is Kafka max message size
What is Kafka max message size  Hi, What is Kafka max message size? Thanks   Hi, It is defined in Kafka with the variable: message.max.bytes Its value is: message.max.bytes (default:1000000) ? This is the max size
What is an Abstract Class and what is it's purpose?
What is an Abstract Class and what is it's purpose?   Hi, What is an Abstract Class and what is it's purpose? Thanks
What is Action Class?
What is Action Class?  What is Action Class? Explain with Example
What is an abstract class?
What is an abstract class?  What is an abstract class
What?s the maximum size of a row in SQL table?
What?s the maximum size of a row in SQL table?  What?s the maximum size of a row in SQL table?   Hi, The maximum Row Size is 8060 Bytes in a sql table.ADS_TO_REPLACE_1 Thanks
please tell me what is ment by wrapper class in java........
please tell me what is ment by wrapper class in java........  what is ment by wrapper class in java
What is the Locale class?
is called locale-sensitive. For details visit What is Locale class in Java...What is the Locale class?  What do you understand about locale class in java program. thanks,   Hi, The Locale class in Java is Java
What is final class?
What is final class?  Hi, What is final class? thanks   Hi, A final class is not be saubclassed. A final method can't be overridden when its class is inherited. You can't change value of a final variable
What is the base class of all classes?
What is the base class of all classes?  Hi, What is the base class of all classes? thanks   Hi, The base class is nothing but the Abstract class of Java programming. We uses the syntax for base class of all
If elements are added at same bucket location in HashMap then what will be the size of HashMap?
"); System.out.println(map + " Size:::: "+map.size()); } } class Employee { private... then what will be the size of map...If elements are added at same bucket location in HashMap then what
what is class methods in objective c
what is class methods in objective c  What is class methods in objective c? Explain the class method of objective c with the help of an example
what is class methods in objective c
what is class methods in objective c  What is class methods in objective c? Explain the class method of objective c with the help of an example
maximum size of arraylist - java
maximum size of arraylist - java  1.what is the maximum size...? 4.how many access specifier and how many access modifier in java? 5.what is difference b/w abstract class and interface? 6.which is best b/w abstract class
what's the purpose of constructor in abstract class?
what's the purpose of constructor in abstract class?  what's the purpose of constructor in abstract class
What is a local, member and a class variable?
What is a local, member and a class variable?   Hi, What is a local, member and a class variable? thanks
Example of Hashset size() method in java.
Example of Hashset size() method in java. The size() is a method of HashSet class. It is used to calculte the size of HashSet. The size of method... || []).push({}); import java.util.HashSet; public class
ARRAY SIZE!!! - Java Beginners
ARRAY SIZE!!!  Hi, My Question is to: "Read integers from... don't know it's size (and I don't want to ask the user to enter it's size... to initialize the array when you don't know the size of the array. Just to get
How to find hashtable size in Java?
How to find hashtable size in Java?  Hi, What is the code for Hashtable in Java? How to find hashtable size in Java? Give me the easy code. Thanks
ARRAY SIZE. - Java Beginners
ARRAY SIZE.  Thanks, well that i know that we can use ArrayList... java.util.ArrayList; public class CopynDouble1 { public static void main(String... class CopynDouble1 { public static void main(String[] param){ try
If I open .class file with notepad what is displayed?
If I open .class file with notepad what is displayed?   What is displayed when we open java .class files with notepad
What are the difference between abstract class and interface?
What are the difference between abstract class and interface?  What are the difference between abstract class and interface
What does it mean that a class or member is final?
What does it mean that a class or member is final?   hi, What does it mean that a class or member is final? Thanks
What are the different types of property and class mappings?
What are the different types of property and class mappings?  Hi, What are the different types of property and class mappings? thanks
arraylist size in the Java program
size() function gives  the total number of elements present in the arrayList. Example of Java Arraylist Size() Function import java.util.ArrayList; import java.util.List; public class List1
What happens to the static fields of a class during serialization?
What happens to the static fields of a class during serialization?   What happens to the static fields of a class during serialization?   .... Base class fields are only handled if the base class itself is serializable
Java class
Java class  What is the purpose of the Runtime class
what is the working of JVM when An object is created of a class?
what is the working of JVM when An object is created of a class?  what is the working of JVM when An object is created of a class?   When the JVM creates the instance of your class object,the object instance is stored
Java file get size
Java file get size In this section, you will learn how to get the size... an object of File class and specified a file in the constructor. The object then calls the method length() which returns the size of the file in bytes. Then we
Java component class
Java component class  Which method of the Component class is used to set the position and size of a component
Controlling Java Heap Size Memory Allocation
Controlling Java Heap Size Memory Allocation  Hi, Tell me about Controlling Java Heap Size Memory Allocation? I have to run java program from console and allocate 2GB of RAM to Java Heap Size. Thanks   Hi, You can
What is the maximum size of a file that can be uploaded using PHP and how can we change this?
What is the maximum size of a file that can be uploaded using PHP and how can we change this?  What is the maximum size of a file that can be uploaded using PHP and how can we change
Class in Java
structure. First of all learn:  what is a class in java and then move on to its... Class in Java      ... and accessibility of a class, member variables and methods. Java provides some access
size of the image - Java Server Faces Questions
size of the image  Hello, how to set the size of the image while...*;import com.lowagie.text.pdf.*;import com.lowagie.text.*;public class.../java
Getting the Size of a File in Java
Java file get size In this section, you will learn how to get the size... an object of File class and specified a file in the constructor. The object then calls the method length() which returns the size of the file in bytes. Then we
Example of size() method of HashMap.
Example of size() method of HashMap. A HashMap is class of collection framwork.... The size() is also a method of HashMap class. It returns the size of HashMap, size means total number of keys in HashMap.   Code: 
How to decrease image thumbnail size in java?
How to decrease image thumbnail size in java?  Hi, I my web application I have to create the thumbnail size image from the image file uploaded by user. How to decrease image thumbnail size in java? Thanks
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
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

Ads