GeekInterview.com
  I am new, Sign me up!
 
GeekInterview.com  >  Tech FAQs  >  Programming  >  Java
Go To First  |  Previous Question  |  Next Question 
 Java  |  Question 564 of 928    Print  
I can get the size(length) of any array (let a[]) by a.length. please tell me what is this "length" word actually signifies, where it is defined in java and what is its actual definition ?

  
Total Answers and Comments: 1 Last Update: March 20, 2006     Asked by: parik_ashish 
  
 Sponsored Links

 
 Best Rated Answer

No best answer available. Please pick the good answer available or submit your answer.
March 20, 2006 05:03:21   #1  
Sonal Mehta        

RE: I can get the size(length) of any array (let a[]) ...
Regardless of what type of array you re working with the array identifier is actually a handle to a true object that s created on the heap. The heap object can be created either implicitly as part of the array initialization syntax or explicitly with a new expression. Part of the heap object (in fact the only field or method you can access) is the read-only length member that tells you how many elements can be stored in that array object. The [] syntax is the only other access that you have to the array object.
 
Is this answer useful? Yes | No

 Related Questions

Latest Answer :  In c,there are argc and argv.argc is passed to argv and argv is used to store characters.in java there is only args.we pass a String value to it. ...

Latest Answer : A Java Bean is a reusable software component that can be visually manipulated in builder tools.  To understand the precise meaning of this definition of a Bean, clarification is required for the following terms:   1. Software component: Reusable ...

Latest Answer : yes ...

Latest Answer : Initially it didnt as java uses "extends" word for inheritance but it didnt allow us to extend more then one class.So the concept of "interface" came which is like abstrct class but with strictness that methods will only be declared at that place & have ...

Latest Answer : JasperReports is a powerful open source Java reporting tool that has the ability to deliver rich content onto the screen, to the printer or into PDF, HTML, XLS, CSV and XML files.Check this link out http://java-source.net/open-source/charting-and-reporting/jasperreports ...

Latest Answer : Java is Object Orieted Programming Language developed by Sun Microsystem (U.S.A).It Is Platform Independent Language.It Is Simple ,Secure,Robust, Compiled & InterPreted Language. ...

Latest Answer : INHERITANCE: Inheritance is the process by which one object can acquire the properties of another. The best example for this is C,C++, and JAVA languages itself. Java is being derived from C++ which in return is being derived from C from where it inherits ...
Tags : OOPS

Latest Answer : multiple inheritance is not allowed in java because to avoid naming collisions. ex:- if a class inherit two classes and let the two parent(base) classes have a method with same name. then child class will inherit only one of them , a naming collision ...

Latest Answer : Java interpreter translate the java Byte code into machine level lang for excuting the program. ...

Latest Answer : public, private, protected and default access ...


 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
 

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 is Comprehensive Data Definition

A Comprehensive Data Definition refers to a formal data definition that provides a complete, meaningful, easily read, readily understood definition explaining the content and meaning of data. In a business enterprise environment where people are heavily depending on intelligent business systems (bus
 

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
 

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
 

JavaScript Array Operations

JavaScript Array Operations In this JavaScript tutorial you will learn about different operations with array in JavaScript how to use the for in statement Combining Operations between arrays and within elements of an array joining two or more arrays and joining elements of an arrays along with synta
 

JavaScript Array Object Methods – Part II

JavaScript Array Object Methods Part II In this JavaScript tutorial you will learn about on array object methods slice splice toString shift and unshift methods along with general syntax and examples mosgoogle center slice By using the methods of the array object the programmer is able to retriev
 

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