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       Ask Questions on ANYTHING, that arise in your Daily Life at     FORUM9.COM
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
 
When is an object in the mean to garbage collection?  3
why applet doesn't have main? isn't possible a program with out main?  5
what is the JNDI?  3
what is life cycle of applet?  4
how can you retrive information from database by using hashmap/arraylist ,plz explain with example briefly? Satyam1
List interface?  2
Can multiple catch statements be used in exceptions ? Wipro4
what is meta-Inf? Polaris2
can u give one sinario when you use Abstract Class and When you use Interface. ITC-Infotech5
why to use transient variables when static variables can be used for Serialization  3
What is the immediate superclass of Menu?  1
Instead of writing Home, Remote Interfaces if i directly extends EJBObject to bean class what happens? Flextronics1
What is the preferred size of a component?  1
Name the immediate superclass of the MenuComponent class?  1
While opening the file, what type of exceptions can be caught?  3
whats the life cycle of jsp Satyam10
What are the names of interfaces that doesn't consists of method/s ?  3
what is connection pooling with example? AMDOC1
What is the purpose of the finally clause?  3
what is difference between String buffer and String builder? Benchmark2
 
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