ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   SiteMap shows list of All Categories in this site.
Google
 
Categories  >>  Software  >>  Core Java  >>  Java J2EE  >>  Java Related
 
 


 

 
 Core Java interview questions  Core Java Interview Questions
 Advanced Java interview questions  Advanced Java Interview Questions
 Swing interview questions  Swing Interview Questions
 EJB interview questions  EJB Interview Questions
 Servlets interview questions  Servlets Interview Questions
 Struts interview questions  Struts Interview Questions
 JDBC interview questions  JDBC Interview Questions
 JMS interview questions  JMS Interview Questions
 SunOne interview questions  SunOne Interview Questions
 J2EE interview questions  J2EE Interview Questions
 Weblogic interview questions  Weblogic Interview Questions
 Websphere interview questions  Websphere Interview Questions
 Java Networking interview questions  Java Networking Interview Questions
 Java J2EE AllOther interview questions  Java J2EE AllOther Interview Questions
Question
How to find the size of an array
a)array.length()
b)array.length
c)array.size()
d)array.size
 Question Submitted By :: Sasirekha
I also faced this Question!!     Rank Answer Posted By  
 
  Re: How to find the size of an array a)array.length() b)array.length c)array.size() d)array.size
Answer
# 1
length is a public static final variable in an array which
will specify the capacity of that array. length() is a
function on strings to find number of characters in that.
 
Is This Answer Correct ?    2 Yes 3 No
Nagesh
 
  Re: How to find the size of an array a)array.length() b)array.length c)array.size() d)array.size
Answer
# 2
Answer 'C'
 
Is This Answer Correct ?    0 Yes 5 No
Sivadasan
 
 
 
  Re: How to find the size of an array a)array.length() b)array.length c)array.size() d)array.size
Answer
# 3
answer is b
 
Is This Answer Correct ?    2 Yes 0 No
Somasekhar
 
  Re: How to find the size of an array a)array.length() b)array.length c)array.size() d)array.size
Answer
# 4
Answer is  b
array.length  is for array 
and
array.size()  is for arraylist
 
Is This Answer Correct ?    4 Yes 0 No
Jigar Gandhi
 
  Re: How to find the size of an array a)array.length() b)array.length c)array.size() d)array.size
Answer
# 5
array.lenth()
 
Is This Answer Correct ?    0 Yes 1 No
Krishna
 
  Re: How to find the size of an array a)array.length() b)array.length c)array.size() d)array.size
Answer
# 6
array.length
 
Is This Answer Correct ?    1 Yes 0 No
Ashish Shinkar
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Can multiple catch statements be used in exceptions ? Wipro4
class A { class B { psvm(String args[]) { } } } if the prg saved in A.java whats the o/p? HCL5
What are the common problems you have faced while implementing Java?  1
when a servlet sends request for first time it uses the follwing methods a)init b)doget() c)dopost() d)service Accenture1
can we have virtual functions in java? Wipro7
Why we need to serialize the object Geometric-Software8
I have one POJO class(Java bean class), it has two variables for that it has setters and getters. Now i have created two objects for that class and i have set the data for those variables through this two objects. Now question is i want check whether those two objects have same data or not, for this write a program? Thanks, Bose. Oracle2
Which class should you use to obtain design information about an object  2
Hi Friends.. can any one provide the real time example for methodoverloading and methodoverriding ......... Honeywell2
what is the difference between multitasking and multithreading?  8
What is more advisable to create a thread, by implementing a Runnable interface or by extending Thread class?  5
What is the difference between Stream Reader and Stream Writer?  4
In Serialization, whether you will use Static variables? HCL2
What is Remote Interface ? CTS4
Can you have a constructor in abstract class?  7
What are virtual functions?  2
What method is used to know the status of Checkbox(i.e it is checked or unchecked)?  1
what is connection pooling with example? AMDOC1
What is meant by packages?  2
What are the names of interfaces that doesn't consists of method/s ?  3
 
For more Core Java Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com