Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Al Hobbs
  • Frits Walraven
  • Scott Selikoff

Important Java Questions

Ranch Hand
Posts: 598
Eclipse IDE Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
Hi All,
I have the below set of Java Questions,Hope you can help me out with the answers.

1> what is run time polymorphism,Provide a working example for the same ?
2> Can we overload a public static void Main method in java?
3> I have the below class

class Person{
String name;
int age;
String desc;

Person p[] = new Person(5);

Now the question is how do you sort the Person p[] array according to his age.Please do using collections API..Can anyone tell me how do we achieve the above thing.Sample Code provided will be helpful

4> List L1 = new ArrayList();
List L2 = new ArrayList();
System.out.println("L1 ::"+L1);
//what will List L1 print in above case ?

5>String s1="abc";
SOP("s1 ::"+s1); //whats the output of s1 in this case?

6> int a[] = new int[5];
what is a[] , is it holding objects (or) primitive data type?

7> what is ResultSet,HttpServletRequest and HttpServletResponse?Are they classes or interfaces ??

8. Can a class be delcared as Private ?

[ September 27, 2008: Message edited by: Deepak Lal ]
Posts: 13459
Android Eclipse IDE Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Report post to moderator
You have been asked before not to paste loads of questions in a single thread, and these are beginner questions, not advanced.

I am going to close this thread. If you would like them answered, please ask the individually in the correct forum.

Crusading Chameleon likes the size of this ad:
the value of filler advertising in 2021
    Bookmark Topic Watch Topic
  • New Topic