- What is Fail-Fast and Fail Safe Systems?
- What is the difference between Encapsulation and Abstraction?
There are two objects a and b with same hashcode. I am inserting these two objects inside a hashmap. - hMap.put(a,a);
hMap.put(b,b); - where a.hashCode()==b.hashCode()
- Now tell me how many objects will be there inside the hashmap?
- What is the difference between StringBuffer and String class ?
- What are Marker Interfaces ? Name few Java marker interfaces ?
- What are various types of Class loaders used by JVM ?
- What are RESTful Web Services ?
- What is a cyclic dependency ?
- What is reflection ?
- How are classes loaded by JVM ?
- What is the use of HashCode in objects ?
- What is a ConcurrentHashMap ?
- How is Hashmap internally implemented in Java ?
- What is a Servlet Filter ?
- What are the ways to get the values from list ?
- There are 8 balls, 7 weigh 100 gms, 1 is defective, there is a weighing scale, any number of balls can be measured at the same time. in how many attempts defective balls can be found out.
serialization and deserialization of singleton class- serialization and deserialization of singleton class
- what is volatile and atomic
- How many read and write operations are provided at the same time by ConcurrentHashMaps ?
in the following class:
class A {
void methoda(Object o) {
Sysout("Object");
}- void methoda(String s) {
Sysout("String");
} - public static void main(String []args) {
A a = new A();
a.methoda(null);
}
} - what will be printed?
- Explain Hibernate caching mechanism?
Explain the difference between JDK, JRE, and JVM.
What makes Java a platform-independent programming language?
Would it be correct to say that Java is not 100% Object-oriented?
What is a constructor in Java?
Differentiate between a constructor and a method? Can we mark constructors final?
What is a class in Java?
State the significance of public, private, protected class.
What is the final class?
What is a wrapper class?
What is an abstract class?
Describe synchronization with respect to multi-threading.
What is the purpose of garbage collection in Java, and when is it used?
What are the different ways of implementing thread? Which one is more advantageous?
What if the main() method is declared as private? What happens when the static modifier is removed from the signature of the main() method?
What is the first argument of the String array in main() method?
What is a Java servlet?
Describe the Life-cycle of a Java Servlet.
Explain the Request Dispatcher?
List the steps to connect to a database in java?
What do you mean by a JDBC Driver?
What is a Java applet?
What is a numeric promotion?
What is false sharing in the context of multi-threading?
What are the methods used to implement for the key Object in HashMap?
What is an immutable object?
Differentiate between String Buffer and String Builder in Java?
What is the difference between factory and abstract factory pattern?
Differentiate JAR and WAR files
What is a JIT compiler?
What is the multi-catch block in Java?
What is Hashcode
What is callable interface
Where we use Hashcode?
Why Hashcode?
Explain types of design pattern
What is factory design pattern?
What is advantable of java serialization?
What is serial no of serialization why we require it ?
Can a static veriable be serialized?
Can a transient variable be serialiazed?
- what is diamond problem
- what is spring IOC and types
- advantages of applicationcontext over beanfactory
- design patterns
- what is bean scopes and how global session scope works
- what is singleton
- lifecycle of a bean
- spring security principal
- spring cloud
- rest vs soap
- what microservices and framework
- JAX-RS annotations
- spring annottaions
- what is ORM and JPA
- JPA annoations and how to access the data from table on the basis of columne name and order by using JPA
- what is spring authrorization
- oauth2.0 working
- what is work of dispatcher servlet
- what is work of view resolver
- how to handle the exception in spring
- if there are two @Controller advice in an application, then which one will be called - @Ordered
- git commands
- apache camel
- ways to implement spring security
- how to gain concurrency in spring
- how to check health of rest service..
- what is oops
- oops concepts in java
No comments:
Post a Comment