| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Nullpointer exception is a very common exception. Why is it
not made as a checked exception? | Ness-Technologies | 1 |
| Instead of writing Home, Remote Interfaces if i directly
extends EJBObject to bean class what happens?
| Flextronics | 1 |
| for what purpose we use applets ? | Mindlogicx | 2 |
| Where the CardLayout is used? | | 1 |
| What is meant by Encapsulation? Can you write a class to
explain encapsulation? | Ness-Technologies | 8 |
| What is the use join() in Threads ? | HCL | 4 |
| Why cant we define System.out.println() inside a class
directly? | | 4 |
| How can we find size of the object ? | RazorSight | 1 |
| I have 100 records in a table with two rows. I need to
display 10 records per page like Google Search. I need only
the Logic(Pagination) in Pure Java. No JSP and all..Thanks
in Advance... | Cybernet | 2 |
| how many ways we can serialize the java object? | Satyam | 1 |
| How many times garbage collector will invoke an object?s
finalize() method? | | 4 |
| 10. class Nav{
11. public enum Direction { NORTH, SOUTH, EAST, WEST }
12. }
13. public class Sprite{
14. // insert code here
15. }
Which code, inserted at line 14, allows the Sprite class to
compile?
a)Direction d = NORTH;
b)Nav.Direction d = NORTH;
c)Direction d = Direction.NORTH;
d)Nav.Direction d = Nav.Direction.NORTH; | | 1 |
| how can u apply shallow cloning and deep cloning to create
object? | Yash-Technologies | 1 |
| what is real-time example of runtime polymorphism and
compile time polymorphism | | 1 |
| when asub class inherits a super class and overrides a
public method of super class in sub class(public method in
super class).
why these methods needs to be public in sub class.
(otherwise compile time error). | | 2 |
| What is the purpose of the File class? | | 2 |
| What primitive Java types? Howmany are they and what are
their names? | | 3 |
| If a multi threaded Java program has started numerous number
of threads, at any point in time how to know which thread is
currently executing/running ? | iFlex | 7 |
| In Serialization, whether you will use Static variables? | HCL | 2 |
| What JNDI(Java Naming and Directory Interface) provides? | | 4 |
| |
| For more Core Java Interview Questions Click Here |