GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Interview Questions  >  J2EE  >  Core Java
Go To First  |  Previous Question  |  Next Question 
 Core Java  |  Question 391 of 507    Print  
How do you find the memory allocated for the allocated object?

  
Total Answers and Comments: 2 Last Update: March 18, 2008     Asked by: sudeep 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 11, 2008 07:58:58   
sampra Member Since: February 2008   Contribution: 278    

RE: How do you find the memory allocated for the allocated object?
object always take 8 byte memory
 
Is this answer useful? Yes | No
March 18, 2008 13:10:47   
lhariPrasad Member Since: September 2006   Contribution: 25    

RE: How do you find the memory allocated for the allocated object?
Can you specify why it is 8 Bytes Does it cast to Long Int / Int ?
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer : Memory leaks are possible in Java. There is a possibility that the garbage collector may never even run during an application's lifetime, even if it is explicitly invoked by calling System.gc(). The garbage collector won't be automatically run ...

Latest Answer : By manually calling the gc() method of Runtime class ...

If there are 2 different versions of object streams on disk and only one object definition, how will the JVM reject the wrong one? Can you fool the JVM

When you have an object passed to a method and when the object is reassigned to a different one, then is the original reference lost

Latest Answer : A phantom reference lets you do final touch up closing on an object, even after it has been declared dead — no longer referenced by any live object.During garbage collection, these reference objects are handled specially; that is, the referent field ...

What is a memory footprint? How can you specify the lower and upper limits of the RAM used by the JVM? What happens when the JVM needs more memory

Latest Answer : Class c=Class.forName("Student");Student s=(Student)c.newInstance();Another method:Student s1= s.clone(); ...
Read Answers (5) | Asked by : chandu

Latest Answer : we can create object in different ways1.new operator2.class.forName3.newInstance4.object.clone ...
Read Answers (4) | Asked by : chandu

When we are sending the serialized array object thro the network, what is being passed ? is the value or the reference ?
Read Answers (5) | Asked by : aadi

Latest Answer : Java is not purely Object Oriented because it uses primitives. ...
Read Answers (8) | Asked by : Beena


 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
 

ODP.NET - OracleCommand Object

ODP NET More About the OracleCommand Object Till now we have seen OracleCommand working with OracleDataReader OracleCommand is not simply meant for OracleDataReader It has got a lot of functionality for itself Let us see few of the most commonly used features of OracleCommand in this section We will
 

Microsoft AJAX Library - Creating Object Members on the Fly

Creating Object Members on the Fly One major difference between OOP in C and ASP NET and OOP in JavaScript is that JavaScript allows creating object members on the fly" This is true for objects and classes that you create yourself and also for JavaScript s own objects and types as well He
 

Microsoft AJAX Library - Object-Oriented JavaScript

Object Oriented JavaScript Objects and classes are implemented differently in JavaScript than in languages such as C VB NET Java or C However when it comes to using them you ll feel on familiar ground You create objects using the new operator and you call their methods or access their fields using t
 

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
 

C++ Memory Management operators

C Memory Management operators Need for Memory Management operators The concept of arrays has a block of memory reserved The disadvantage with the concept of arrays is that the programmer must know while programming the size of memory to be allocated in addition to the array size remaining constant m
 

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
 

Object-Oriented Client-Server Internet

Object Oriented Client Server Internet OCSI Environments as IT Infrastructure Client Server Basics Object Oriented Client Server Internet OCSI environments provide the IT infrastructure for supporting OCSI applications For our purposes infrastructure refers to operating systems networks middleware
 

JavaScript String Object

JavaScript String Object In this JavaScript tutorial you will learn about String Object purpose of string object in JavaScript purpose of string object indexof method lastIndexOf method and substring method along with syntax and example mosgoogle center Purpose of String Object in JavaScript The mai
 

JavaScript Date Object

JavaScript Date Object In this JavaScript tutorial you will learn about date object and methods of date object explained along with syntax and example mosgoogle center JavaScript Date Object Usage of Date Object Date object of Java Script is used to work with date and times General syntax for defini
 

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

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

Page copy protected against web site content infringement by Copyscape