Solved

Where i can get faqs?

Posted on 2011-03-13
6
200 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
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
How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

 
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

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Go is an acronym of golang, is a programming language developed Google in 2007. Go is a new language that is mostly in the C family, with significant input from Pascal/Modula/Oberon family. Hence Go arisen as low-level language with fast compilation…
Java functions are among the best things for programmers to work with as Java sites can be very easy to read and prepare. Java especially simplifies many processes in the coding industry as it helps integrate many forms of technology and different d…
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…
Viewers will learn about basic arrays, how to declare them, and how to use them. Introduction and definition: Declare an array and cover the syntax of declaring them: Initialize every index in the created array: Example/Features of a basic arr…

759 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now