| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| What is numeric promotion? | | 1 |
| Can a Byte object be cast to a double value? | | 2 |
| Package1 and Package2 both have a method name lets say
"methodA" with different implementation. When I import both
the packages in a java class how can I use both the methods? | Ericsson | 3 |
| What is the difference between abstract class and interface? | | 2 |
| Can we declare static variables in JSP page. | TCS | 3 |
| What modifiers are used with a top level class? | | 2 |
| When we can access the static data member without creating
the object what is the need of the object in java.
| ssinformatics | 4 |
| what is custom tags with example? | AMDOC | 1 |
| What is the immediate superclass of Menu? | | 1 |
| What is the immediate parent class of the Applet class? | | 1 |
| What are null interfaces in JAVA ? and give me some
examples? | | 3 |
| can we have virtual functions in java? | Wipro | 7 |
| Differentiate constructor and a method and how are it be
used? | Wipro | 5 |
| What is anonymous class? | | 2 |
| how to print output with out using sop statements | UHG | 3 |
| they asked class A{}
class B{}
class c{}
all the three class saved as a single file,there is no main
method in the file
and anothe class
M.java
class m
{
psvm(String args[])
{
// here the parent class can access
}
}
| DNS | 1 |
| What is the Set interface? | | 2 |
| Why we use static and synchronized in method for single
thread model
example:
public static synchronized add(){} | | 1 |
| what is Assertion? | Wipro | 2 |
| suppose in a class there is a code like this:
{
Set hs=new Hashset();
hs.add(new Emp("kathy",1000));
hs.add(new Emp("kathy",2000));
}
how can u avoid the above code in your class as set won't
allow duplicate objects? | | 2 |
| |
| For more Core Java Interview Questions Click Here |