Solved

Where i can get faqs?

Posted on 2011-03-13
6
211 Views
Last Modified: 2012-05-11
Hi,

I want to practice some core java questions, not basic questions, questions like..

1. can we define a variable in interface?
2. How you can sort user defined objects in a specified manner in collection?

so, please provide the URL, where can i get this kind of questions?
0
Comment
Question by:haneef_nb
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
6 Comments
 
LVL 92

Expert Comment

by:objects
ID: 35124633
0
 
LVL 23

Accepted Solution

by:
Eirman earned 500 total points
ID: 35124654
0
 
LVL 47

Expert Comment

by:for_yan
ID: 35125417
In addition to the above links, these are direct short answers to your questions:

1) Interfaces can and are often used for defining static variables

2) In order to sort user defined objects in the collection you need to override
int compareTo(Object) method and define it in a way which corresponds to
your preference in object ordering. Then Collections.sort(ArrayList) method
will order your obejects as you wish


0
Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 35125884
0
 

Author Closing Comment

by:haneef_nb
ID: 35376576
Thanks......
0
 
LVL 20

Expert Comment

by:Sathish David Kumar N
ID: 35376594
Is that single exprt link only help you to achive your answer ?
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
fibonacci ten numbers 4 54
null output 3 43
Finding all private fields and their corresponding getters setters for nested classes 4 21
Java array sort 10 35
Are you developing a Java application and want to create Excel Spreadsheets? You have come to the right place, this article will describe how you can create Excel Spreadsheets from a Java Application. For the purposes of this article, I will be u…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Viewers learn about the “while” loop and how to utilize it correctly in Java. Additionally, viewers begin exploring how to include conditional statements within a while loop and avoid an endless loop. Define While Loop: Basic Example: Explanatio…
The viewer will learn how to implement Singleton Design Pattern in Java.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question