| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| If set accepts only one argument then how can it compare
two objects to avoid duplicates | | 3 |
| Can you declare a static variable in a method? | | 4 |
| Name the method that used to clear the buffer ? | | 2 |
| Explain in detail about encapsulation with an example? | | 3 |
| How to override a equals() method and what is the use? | | 1 |
| String is a immutable objects . it means that string does
not change...........
But it will be chang.........
{
String s="kapil";
String s1="raj";
String s=s1;
then print(.......)
The String has been changed ..
how it is possible and why its called immutable objects | | 3 |
| In Java why we write public static void main(String args[])
why not main()? | TCS | 12 |
| Explain, why the constructor is required in implemented
class? | | 2 |
| What primitive Java types? Howmany are they and what are
their names? | | 3 |
| Can u write constructor in abstract.If yes den when it will
be invoked. | SunGard | 3 |
| What is Generic in java? Where can we write Generic ( class or method or objects or etc...)? with simple example?
Thanks, Bose. | Infosys | 1 |
| jdbc drivers? | Wipro | 7 |
| 1).what is the difference between below examples
String s="vijay";
String s=new String("vijay"); | TCS | 11 |
| What will happen inside init() in servlet. my interviewer
asked servlet lifecycle. i said "once servlet is loaded in
to memory init() will be called which performs servlet
initialization " . Again interview asked what values will be
initialized . what is difference between init() and
init(ServletConfig config). | Infinite-Computer-Solutions | 2 |
| How to access a variable if it is declared as private? | | 2 |
| Catch(Exception e){
}
in that what is Exception and purpose of that in that place
exactly? | | 3 |
| Java violates few objected oriented concepts. Can you
explain in what way? | Ness-Technologies | 3 |
| How to create two different thread class inside a main function? | | 1 |
| A abstract class extending an abstract class.Super class
has both abstract and non-abstract methods.How can we
implement abstract and non-abstract mehtods? Explain with
snippet | | 3 |
| what is difference between throw and throws in exception? | | 16 |
| |
| For more Core Java Interview Questions Click Here |