GeekInterview.com
   Home |  Tech FAQ  |   Interview Questions |  Placement Papers |  Tech Articles |  Learn |  Freelance Projects |  Online Testing |  Geeks Talk |  Job Postings |  Knowledge Base | Site Search |  Add/Ask Question

GeekInterview.com  >  Placement Papers  >  Manhattan Associates  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 9 of 17    Print  
Cleaning operation in Java is done in the method

(a) finally()
(b) finalize()
(c) final()


  
Total Answers and Comments: 2 Last Update: August 02, 2005   
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
April 17, 2005 08:12:41   #1  
lavanya        

RE: Cleaning operation in Java is done in the method(a) finally() (b) finalize() (c) final()
b
 
Is this answer useful? Yes | No
August 02, 2005 05:13:26   #2  
Sumit Sengar        

RE: Cleaning operation in Java is done in the method(a) finally() (b) finalize() (c) final()
protected void finalize() method is called by the garbage collector just before it is about to reclaim the memory space acquired by the object.
 
Is this answer useful? Yes | No

 Related Questions

Which of the following 2 methods executes faster ?class Trial { String _member; void method1() { for(int i=0;i<2048;i++) { _member += "test"; } } void method2() { String temp; for(int i=0;i<2048;i++) { temp += "test"; } _member = temp; } } (a) method1() (b) method2() (c) Both method1() and method2() takes same time for execution
(b)Accessing method variables requires less overhead than accessing class variables. 

By default, Strings to functions are passed using the method(a) Call by Value (b) Call by Reference (c) Strings cannot be passed to function
(b)String is a class defined in java.lang and in java all classes are passed by reference. 

How many String objects are created by the following statements ?String str = " a+b=10 "; trim(str) str.replace(+,-);(a) 1 (b) 2 (c) 3 (d) 4
(c)Strings are immutable. So, for each String operation, one new object is generated. 

Latest Answer : protected void finalize() method is called by the garbage collector just before it is about to reclaim the memory space acquired by the object. ...

Latest Answer : Static Methods over loading is of no use for example the below code will produce a output of B.m1 C.m1 C.m1 if we remove static in those functions we will get an ouput of  B.m1 C.m1 B.m1 class C{   static ...

Latest Answer : yes answer is final  it wou't give chance to other to modify. it prevant to other to chace the class. ...

A program given using try, catch and finally and it is asked to find out which statements get executed ?


 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
 

ERP Operation and Control

ERP Operation and Control The selection of the most suitable management system is it a difficult decision to make but once it is decided the next step is the operation and maintenance of ERP It is necessary to know well all the capacities and abilities in order to exploit the system to its fullest e
 

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 is Common Data Modeling Method

Common Data Modeling is one of the core considerations when setting up a business data warehouse. Any serious company wanting to have a data warehouse will have to be first serious about data models. Building a data model takes time and it is not unusual for companies to spend two to five years just
 

JavaScript Window Object Open Method Part 2

JavaScript Window Object Open Method Part 2 In this JavaScript tutorial you will learn about JavaScript Window Object Open Method features of window object open method scrollbars status titlebar toolbar top width innerHeight innerWidth outerHeight outerWidth and hotkeys mosgoogle center scrollbars S
 

JavaScript Window Object Open Method

JavaScript Window Object Open Method In this JavaScript tutorial you will learn about JavaScript Window Object Open Method features of window object open method channelmode directories dependent fullscreen screenX screenY height left location menubar resizable alwaysLowered alwaysRaised mosgoogle ce
 

Using UML with Java

Using UML with Java While Java is not a new language its application for the development of embedded systems is quite new Developers are beginning to take a second look at modeling languages such as UML and many feel it can be a powerful tool in their development arsenal mosgoogle center Introductio
 

Java Technology Trends

Technology Trends Involving Java Java is an object oriented programming language OOP for Web browsers It is organized around data rather than actions and supports polymorphism which allows the same code to be written generically so it can function with different datatypes inheritance which allows on
 

Why It is Important To Focus On Java Exceptions For Your Programs

Why It is Important To Focus On Java Exceptions For Your Programs If you work with Java it is important to understand exceptions Exceptions are uncanny situations that can destroy the normal behavior of a program mosgoogle They are common in the Java programming language and it is something you will
 

Important Features of Java - Multithreading, AWT

Important Features of Java Multithreading AWT In this tutorial you will learn about Important Features of Java Multithreading AWT and Event Handling Networking Socket and Database Connection mosgoogle There are many features of Java Some of them namely are explained below Multithreading A fundamenta
 





About Us  |   Privacy Policy  |   Terms and Conditions  |   Contact  |   Site Map  |   Add Question  |   Propose Category  |   RSS Feeds  |   Articles Sitemap  |   Site Updates  |   Add Resource

Copyright © 2005 - 2008 GeekInterview.com. All Rights Reserved
Page copy protected against web site content infringement by Copyscape