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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Tim Cooke
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Devaka Cooray
  • Ron McLeod
  • paul wheaton
Saloon Keepers:
  • Tim Moores
  • Piet Souris
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • 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();
L1=L2;
L2.add("COOL");
System.out.println("L1 ::"+L1);
//what will List L1 print in above case ?

5>String s1="abc";
s1.concat("def");
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 ]
 
Rancher
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.

thanks,
Dave
 
Crusading Chameleon likes the size of this ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
    Bookmark Topic Watch Topic
  • New Topic