| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Is &&= a valid Java operator? | | 2 |
| Which class is extended by all other classes? | | 2 |
| If two threads call a static method at the same point of
time, what will happen? | KPIT | 1 |
| What is the middleware? | | 2 |
| Given:
1. package test;
2.
3. class Target {
4. public String name = “hello”;
5. }
What can directly access and change the value of the
variable name?
1 any class
2 only the Target class
3 any class in the test package
4 any class that extends Target
| | 3 |
| Which containers may have a MenuBar? | | 1 |
| what is the life cycle of jsp? | Photon | 2 |
| when i write
string s1="java";
in one program(application) and
string s2="java";
in another application
on the same jvm will both objects s2,s2 will refer to same
memory location where "java" is stored
in string pool. | | 2 |
| how do you store phone numbers using java collections | Bosch | 4 |
| when,where and how to use abstract class and interface | | 2 |
| how can we use the servlet as standalone apllication?should
we need to extend any class? | Logica-CMG | 2 |
| how to transactions(Bank transactions) in business process
in ejb? | Photon | 1 |
| What is Collections API? | | 1 |
| what is the difference between multitasking and
multithreading? | | 8 |
| What is operator? | | 2 |
| What is an exception? | | 4 |
| What are the advantages of the model over the event-
inheritance model? | | 1 |
| Can you have an inner class inside a method and what
variables can you access? | | 2 |
| where do we use init() | | 2 |
| 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 |
| |
| For more Core Java Interview Questions Click Here |