| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| How GUI component handle its own events? | | 1 |
| 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 |
| What is the Vector class? | | 3 |
| What happens when you assigned a 'double' value to
a 'String'? | | 6 |
| What is an Exception ? | | 6 |
| what release of java technology are currently available what
do they contain? | | 1 |
| What is an abstract class? | Wipro | 5 |
| Hi,
This is ravi i have a question like this i have string
"UNDERSTAND" now i want to count the letters how many times
it occures.i.e from the above string the out put should be
like this U-1,N-2,D-2,E-1,R-1,S-1,T-1,A-1.
how can i achieve this
Thnaks in advance for your response .. | | 4 |
| What are virtual methods? | TCS | 1 |
| what is finalmethod & final variable with example? | HP | 2 |
| What is the difference between throw and throws? | | 5 |
| y cant i declare method like public final static show() | | 2 |
| Why null interfaces are used in Java? | | 2 |
| What is the difference between this() and super()? | TCS | 11 |
| write a simple program inheritance? | Polaris | 2 |
| what is use of session tracking ?with example? | Photon | 1 |
| Java violates few objected oriented concepts. Can you
explain in what way? | Ness-Technologies | 3 |
| What is the purpose of a statement block? | | 1 |
| Explain class A{}
class B{}
class C{}
all the three classes are saved in a single file name, what
the name should i provide to the file ,in what file name
should i run the program? Ple Explain | DNS | 6 |
| what is struts-config-xml?and its use? | | 3 |
| |
| For more Core Java Interview Questions Click Here |