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
Hai all
I want to print given array in reverse order Ex:
int a[]={1,2,3,4,5};display this array in reverse order.
 Question Submitted By :: Srinivas123vasu
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Hai all I want to print given array in reverse order Ex: int a[]={1,2,3,4,5};display this array in reverse order.
Answer
# 1
5
4
3
2
1
 
Is This Answer Correct ?    0 Yes 4 No
Guest
 
  Re: Hai all I want to print given array in reverse order Ex: int a[]={1,2,3,4,5};display this array in reverse order.
Answer
# 2
for(int i=a.length-1;i>=0;i--){
   System.out.println(a[i])
}
 
Is This Answer Correct ?    2 Yes 1 No
Nagesh
 
 
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
Can you run the product development on all operating systems ?  1
What are Access Specifiers and Access Modifiers. TCS4
what is the use of finalize()Method please explain with an example  2
Can you have an inner class inside a method and what variables can you access?  2
which method throws exception of type Throwable  2
What is the default initialized value of a boolean type variable?  3
What is 'finally' method in Exceptions?  4
basic difference b/w ALL types of JDBC driver. Systematix1
What is I/O Filter? TCS1
When is an object in the mean to garbage collection?  3
Is there is any error if you have multiple main methods in the same class? Wipro9
How does Vector implement synchronization? Ness-Technologies2
What is a package?  2
Why cant we define System.out.println() inside a class directly?  4
explain the concept of inheritance with an example? Polaris5
Program to find greatest prime number in n numbers? Huawei3
What are field variable and local variable?  2
They had given one progam final HashMap hm=new HashMap(); public void show() { hm.put("name",value); } in this prg here the final hashtable value can be changed in put method,its the prg run? DNS2
when,where and how to use abstract class and interface  2
What is the difference between this() and super()? TCS11
 
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