| Other Core Java Interview Questions |
| |
| Question | Asked @ | Answers |
| |
| 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 |
| How can you say HashMap is syncronized? | IBM | 13 |
| what are class,constructor and primitive data types? | | 2 |
| What is the difference between getCodeBase and
getDocumentBase methods? | | 1 |
| diff between abstract methods and interfaces with programing
(code) example? | | 2 |
| What is the purpose of having the concept of overloading? | Ness-Technologies | 5 |
| Is JRE required to compile Java files ? | HCL | 3 |
| Can you make an instance of an abstract class?
| Accenture | 4 |
| different types of threads? | TCS | 7 |
| Without creating a new object, How you can retrieve a
String or other object? | | 1 |
| How to access a method that it declared as protected? | | 3 |
| whst is encapsulation?when u encpsulate actually while
devoloping code? | AMDOC | 5 |
| what is the use of datasource in core java? | Satyam | 2 |
| What is the smallest package in Java API? | | 4 |
| What are Font and FontMetrics classes? | | 1 |
| Different types of modifiers? | RoboCom | 3 |
| How to validate the request (Eg:user name and password) in
session(http session)? not in LDAP server ? | Saksoft | 1 |
| What is the middleware? | | 2 |
| which swing component is similar to rich text box in .net/vb | | 1 |
| wHAT IS DEFAULT SPECIFIER IN JAVA
wHAT IS DEFAULT CONSTRUCTOR IN JAVA
wHAT IS DEFAULT METHOD IN JAVA | IBM | 10 |
| |
| For more Core Java Interview Questions Click Here |