| Other Core Java Interview Questions |
| |
| Question |
Asked @ |
Answers |
| |
| What is the difference between the >> and >>> operators? |
| 1 |
| when to use ArrayList and when to use HashMap in
webApplication. |
| 1 |
| what is the difference between System.exit() and
System.exit(1)? |
eClinical-Solutions | 1 |
| Difference between Primary key and unique key? |
| 4 |
| interface X{
void m1();
void m2();
}
class Child2 extends Object implements X {
public void m1(){
System.out.println("Child2 M1");
}
public void m2(){
System.out.println("Child2 M2");
}
}
public class ParentChildInfterfaceDemo {
public static void main(String[] args){
X x = new Child2();
X x1 = new Child2();
x.m1();
x.m2();
x.equals(x1);
}
}
Will the above code work?
If yes? Can you please explain why the code
x.equals(x1) will work as the equals method is called on
interface reference vaiable? |
| 2 |
| Why only one Class is public in one file? Explain in
details. Thanks in Advance. |
| 12 |
| what is meant by package in java? |
| 5 |
| StringBuilder s = new StringBuilder("Hello
Mom");s.append(",I mean,Mother");
Response.Write(s.ToString());
String s = "Hello Mom";
s+ = ",I mean Mom";
Response.Write(s);
Which is faster ? which uses the most memory? |
| 6 |
| Hi can u pls tell me what is the use of marker interface.
Iknow what is marker interface but what ability will the
object get by implementing this. |
CGI | 3 |
| What are Transient and Volatile Modifiers? |
SAP-Labs | 2 |
| Write a program for recursive Traverse? |
| 1 |
| What are the two ways you can synchronize a block of code? |
Ericsson | 5 |
| |
| For more Core Java Interview Questions Click Here |