Solved

Where i can get faqs?

Posted on 2011-03-13
6
202 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
3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

 
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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

Suggested Solutions

By the end of 1980s, object oriented programming using languages like C++, Simula69 and ObjectPascal gained momentum. It looked like programmers finally found the perfect language. C++ successfully combined the object oriented principles of Simula w…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Video by: Michael
Viewers learn about how to reduce the potential repetitiveness of coding in main by developing methods to perform specific tasks for their program. Additionally, objects are introduced for the purpose of learning how to call methods in Java. Define …
Viewers will learn about if statements in Java and their use The if statement: The condition required to create an if statement: Variations of if statements: An example using if statements:

910 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

23 Experts available now in Live!

Get 1:1 Help Now