| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 1.what is the exact difference between applet and frame?
2.Do we use main method in frames? | | 2 |
| What are batch updates. in jdbc | Corent-Technology | 2 |
| explain me with a code snippet about the generation and
handling of null point exceptions. | | 1 |
| How can you sort dates? | TCS | 1 |
| how can we synchronize Hash map? | CTS | 3 |
| We have two methods to create methods the threads.
1. Implementing runnable interface
2. Extending to thread class and overriding run method.
Among these two which one is better and why?
Please explain me in detail. | | 2 |
| How will you convert an ArrayList to Arrays? | KPIT | 3 |
| methods in Applet? | | 1 |
| What is the root class for all Java classes? | | 4 |
| 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 |
| when a servlet sends request for first time it uses the
follwing methods
a)init
b)doget()
c)dopost()
d)service | Accenture | 1 |
| how to handle http request in struts | Polaris | 2 |
| Differentiate constructor and a method and how are it be
used? | Wipro | 5 |
| What are access modifiers in Java ? | | 5 |
| How are Java source code files named? | | 3 |
| How to validate the request (Eg:user name and password) in
session(http session)? not in LDAP server ? | Saksoft | 1 |
| What are the traverses in Binary Tree? | Adobe | 2 |
| what is difference between abstract and interface?
can i give real time example for the two topics? | | 6 |
| What is the diff. b/w Interfaces & Abstract class? | Ericsson | 4 |
| Is 'null' a keyword? | | 3 |
| |
| For more Core Java Interview Questions Click Here |