GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 886 of 928    Print  
Reference Variable Size
What is the size of reference variable?


  
Total Answers and Comments: 2 Last Update: June 15, 2009     Asked by: durgapushpakumari 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
February 18, 2009 10:06:52   #1  
justjiten Member Since: September 2008   Contribution: 9    

RE: Reference Variable Size
size of the reference variable is always 8-bytes
 
Is this answer useful? Yes | No
June 15, 2009 00:28:48   #2  
Sagar Mitkari Member Since: June 2009   Contribution: 1    

RE: Reference Variable Size
Not 8 bits. We never know what is the value of reference variables. But one thing for sure all the
reference variables you refer have same value as far as memory allocation issue is concerned.
On other hand the objects do have different size depending on the number of and
value of instance variables.

 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : The static variable is used to Synchronize (Ex: in seaphores…) the threads because it maintains the single copy for all the instances. We can call the static variable by the class name or from the reference. It stored in a Data segment. ...

Latest Answer : Please Check with this example programpublic class StaticExam { static int a=10;public static void main(String args[]){System.out.println(" Welcome to static variable testing");StaticExam s= new StaticExam();s.display();}public void display(){System.out.println(" ...

Suppose If we have variable ' I ' in run method, If I can create one or  More thread each thread will occupy a separate copy or same variable will be shared

I want to fetch the URL address of the Internet Explorer through java program , what ever the user will write in the address of the Internet Explorer should be save into the variable of java program
View Question | Asked by : abhishek prakash

Latest Answer : The arguments are passed by value. ...

Latest Answer :  Here is the snap shot of the working solution to the said question..try{System.out.println("class name is "+class_name);Class cls=Class.forName(class_name);Constructor[] ctorlist=cls.getConstructors();/**temporary remove the sysout statement***//** ...
Read Answers (3) | Asked by : utpal utkalit

The number of subscripts(indexes) in 2D array is two(2).Both row and column size must be __________________.
Integer constantsExample: int a[2][3]; Here a is an array consisting of two rows with each row with each row consists of 3 integer elements 
View Question | Asked by : V Govinda Rao

View Question | Asked by : prasad

A) 0 to 215-1 B) 0 to 216-1 C) 0 to 215  D) 0 to 216   
Latest Answer : the range of char is 0 to 2^16 -1http://java.sun.com/docs/books/tutorial/java/nutsandbolts/datatypes.html) char range is 65535 that is equivalent to 2^16 -1 so answer B is right ...

Which of the following statements correctly describes the relation between an object and the instance variable it stores? (Select multiple)
A) Each new object has its own distinctive set of instance variablesB) Each object has a copy of the instance variables of its classC) the instance variable of each object are seperate from the variables 


 Sponsored Links

 
Related Articles

Service Oriented Java Business Integration Review

Service Oriented Java Business Integration Review Introduction If you ve read through the texts which give you an introduction to SOA or Web Services you will often find them to be quite frustrating and the reason for this is because they spend too much time referencing business processes which are
 

jQuery Reference

jQuery Reference Guide by Jonathan Chaffer and Karl Swedberg A Comprehensive Exploration of the Popular JavaScript Library jQuery Reference Guide packtpub com jquery reference guide Open Source book Anatomy of a jQuery Script He s got a brand new start Now he s a happy guy Categ
 

Concepts of Object-Oriented Programming

Object Oriented JavaScript In this chapter you ll learn about OOP Object Oriented Programming and how it relates to JavaScript As an ASP NET developer you probably have some experience working with objects and you may even be familiar with concepts such as inheritance However unless you re already a
 

Java and Client Server Models

Java and Client Server Models The Role of Client Servers on the Web Client server models provide the essential mechanisms for working with the Internet In fact most of the World Wide Web is built according to this paradigm In client server models the web browsers run by millions of users are the cli
 

What happens when a variable is not initialized in main function?

When a variable is not initialized in main function it contains garbage value. This can be well seen from the example below main() { int x; printf(“%d”,x); z= sample() } sample() { printf(“Testing program”); } Output is   &n
 

What happens when a variable is not declared in function definition?

Generally in C program the function definition and calling takes the form as given below: main() { int x,y,z; z=sample(x,y); printf(“%d”,z); } sample(x1,y1) int x1,y1; { int z1; z1= x1 - y1; return(z1); } Here what happens is the values x, y gets passed to x1,y1
 

What is difference between call by value and call by reference in function?

The arguments passed to function can be of two types 1. Values passed 2. Address passed The first type refers to call by value and the second type refers to call by reference. For instance consider program1 main() { int x=50, y=70; interchange(x,y); printf(“x=%d y=%d”,x,
 

SQL Programming

SQL Programming Overview Anybody who has done something for a long time has probably wanted to change how things work at some point or another. A worker at a mill might have found a more efficient way of cutting logs, or a mathematics teacher might have had a hand in changing a school’s al
 

WinRunner Programming Concepts

If you want to create WinRunner scripts that are highly efficient, there are important programming concepts that you will want to become familiar with. Understanding these concepts will provide you with a large number of key benefits. In addition to understanding these concepts, you must also learn
 

Programming Languages Certification

IT Certification programs have several options that will offer you the best knowledge.  By learning everything that you need to know about information technology you will be able to open new doors to your career and personal business desires.  IT Certification offers several vari
 

About Us -  Privacy Policy -  Terms and Conditions -  Contact -  Ask Question -  Propose Category -  Site Updates 

Copyright © 2005 - 2009 GeekInterview.com. All Rights Reserved

Page copy protected against web site content infringement by Copyscape