This week's giveaway is in the Testing forum.
We're giving away four copies of TDD for a Shopping Website LiveProject and have Steven Solomon on-line!
See this thread for details.
Win a copy of TDD for a Shopping Website LiveProject this week in the Testing forum!
  • Post Reply 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

interview questions

 
Ranch Hand
Posts: 140
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
1)Class A {
Public void amethod(){
System.out.println(�amethod�);
}
class B extends A{
public static void main(String args[]){
B b = new B();
b.amethod();
}
}
}
if I run amethod on the console;
in the class A if i replace public class with private modifier;then I don�t compile class B and I run directly what will happen?
What is late binding and early binding?
2)
If I don�t want to instantiate a class B; how will u call constructor directly in class?
Class B{
B(){
}
}
public static void main(String args[]) {
B b = new B();
}
3) Can interface extend class?IF NO WHY
4)Howmany ways of instantiating an object?
5)How do we achieve read-only functionality using array list
6)If Hashtable take unique values what about hash map? Will it throw exception?
 
Don't sweat petty things, or pet sweaty things. But cuddle this tiny ad:
free, earth-friendly heat - a kickstarter for putting coin in your pocket while saving the earth
https://coderanch.com/t/751654/free-earth-friendly-heat-kickstarter
reply
    Bookmark Topic Watch Topic
  • New Topic