| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| Describe inheritance as applied to java? | | 4 |
| write a progam hashmap & hashtable? | IBM | 2 |
| How to make class immutable | | 5 |
| What is the exact difference in between Unicast and
Multicast object ? | Accenture | 1 |
| What is OOP?
| BMC | 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 |
| Does 'true' and 'false' are keywords? | | 5 |
| what is meant by serialization? | | 6 |
| By what default value is an object reference declared as an
instance variable? | Wipro | 1 |
| what is an anonymous class? | TCS | 5 |
| System.out.println(101/14)
what is the output?
a)6
b)14
c)7.14
d)0 | Accenture | 6 |
| Write program to print Hello World and print each character
address in that string and print how many times each
character is in that string?
Ex: H: 0 & 1
e:1 & 1
l :2,3,8 & 3
o:4,6 & 2
w:5 & 1
r: 7 & 1
d 9 & 1 | Huawei | 3 |
| How the elements are organized in GridLayout? | | 1 |
| types of applets?. | TCS | 3 |
| What is run-time class and system class? what is their
purpose? | | 1 |
| What are concepts of OOPS and how are they implemented in
Java? | KPIT | 2 |
| how to call One constructor from another; | Innodata-Isogen | 7 |
| how to connect one jsp page to another jsp page???? | Symphony | 4 |
| Difference between canvas class & graphics class? | | 1 |
| What is Session and cookies?Explain in detail with an
example? | CTS | 2 |
| |
| For more Core Java Interview Questions Click Here |