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                      
info       Did you received any Funny E-Mails from your Friends and like to share with rest of our friends? Yeah!! you can post that stuff   HERE
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
Linked List reverese program
 Question Submitted By :: Guest
I also faced this Question!!     Rank Answer Posted By  
 
  Re: Linked List reverese program
Answer
# 1
import java.util.Collections;
import java.util.LinkedList;


public class LikedListDemo {
public static void main(String[] args) {
	LinkedList list = new LinkedList();
	list.add("Raju");
	list.add("Gopal");
	list.add("Senthil");
	list.add("nagesh");
	System.out.println("list size....."+list.size());
	System.out.println("list ....."+list);
	Collections.reverse(list);
	System.out.println("revese list ....."+list);
}
}
 
Is This Answer Correct ?    0 Yes 1 No
Dsr
 

 
 
 
Other Core Java Interview Questions
 
  Question Asked @ Answers
 
my method "abc" return array of interface "xyz" and "pqr" is abstract class implements abc and class "jkl" extends pqr My problem 1) when i call abc it retrun array xyz how can i do this hint xyz refer_xyz = new jkl(); but i can't create array. 2)I want to access method of jkl using reference of xyz??  1
is java support call by reference and call by value, if supports please explain?  3
What is Remote Interface ? CTS4
What are order of precedence and associativity, and how are they used?  1
What is the need of "creating and throwing an UserdefinedException" when the "Exception" class is already available?  4
Why do we use public static with the main function in Java? Infosys7
If you are reviewing the code of your team members, what points will you look at, assuming the performance of the application is not so great KPIT2
In what types of operations an ArithmeticException will be thrown?  2
Is it possible to create Userdefined Unchecked Exception also?If Yes, give an example?  2
Does 'true' and 'false' are keywords?  5
how u do unit testing? iFlex2
what is webservices Mind-Tree4
when asub class inherits a super class and overrides a public method of super class in sub class(public method in super class). why these methods needs to be public in sub class. (otherwise compile time error).  2
In Inheritence concept, i have a static method in super class and i am inheriting that class to one sub class.in that case the static method is inherited to sub class or not???? Accenture8
How can you eliminate duplicates?  1
I have one Shopping cart application, i that i have selected some items, while clicking submit button by mistake i have clicked twice or trice, that time items are selected twice or trice. Actually i want only one copy of items but its selected twice or trice. So how can we avoid this problem? Honeywell2
What is a stream? what are the different types and classes of Streams?  2
which method is used to know the status of the Thread? Honeywell6
What is static and a non-static inner class?  3
What is casting ?  2
 
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