Udemy
    •  
    •  
    •  
    •  
    •  
    •  
    •  
    •  
Turn what you know into an opportunity and reach millions around the world.
Learn More
Your cart is empty.
Keep shopping
Java Developer Interview Preparation Course
Rating: 4.4 out of 5(234 ratings)
7,994 students

Java Developer Interview Preparation Course

This course will prepare you for Java interviews
Created byCode Decode
Last updated 2/2022
English
English [Auto],

What you'll learn

  • Candidate will get prepared for Java Interview by completing this course
  • This is self paced course.
  • Everyone from college to working candidate can attend this course before attending Interviews
  • It will contain Interview Questions which is mostly asked in Java Interviews

Course content

2 sections27 lectures1h 34m total length
  • Why Java is not 100% Object Oriented1:01

    Java is not 100 percent object oriented because it uses primitive types wrapped by wrapper classes to become objects, so not everything revolves around objects.

  • Is Java Pass by value or Pass by reference8:22

    Explore whether Java passes primitives by value and object references by value, with examples showing copying the value versus modifying the original object through the copied reference.

  • What is Covariant return type in Java ?5:10

    Learn covariant return types in Java, where after Java 5 an overriding method can return a subtype of the parent return type, illustrated with Object, String, Animal, Labrador, and Frog.

  • What is Equals and Hash Code contract ?13:00

    Explore the Java equals and hash code contract, implement equals, override hashCode, and understand shallow versus deep comparison for reliable map behavior.

  • Why Pointers are not used in Java ?1:05

    Learn why pointers are not used in Java, as memory allocation is managed by the JVM and direct memory access is discouraged to preserve safety and simplicity.

  • What is JIT compiler in Java ?2:02

    Explore how the JIT compiler in Java converts bytecode into machine code at runtime to boost performance, while the interpreter translates bytecode line by line.

  • Why String is immutable in Java ?1:02

    Understand why strings are immutable in Java, emphasizing safe sharing of string references and the creation of new string objects on modification to protect security.

  • What is Marker Interface ?1:32

    Marker interfaces are empty, having no data members or functions, used in Java to convey metadata to the compiler.

  • Can you override a private or static method in Java ?1:56

    Discover why private and static methods cannot be overridden in Java, how method hiding works with the same name and arguments, and referencing such methods with the class name.

  • Does finally always execute in Java ?0:46

    Examine whether the finally block always executes in Java, and identify two cases where it does not: when the system crashes or when System.exit is called.

  • How to break Singleton Design pattern in Java ?18:33

    Learn how a singleton in Java is built with a private static instance, private constructor, and a getInstance method, then examine breaking it via reflection, serialization, and cloning.

  • What methods does Object class have ?1:59

    Understand the Java object class and its core methods: clone copies objects, equals defaults to reference equality, finalize runs before garbage collection, and toString returns the object's string representation.

  • How to make class Immutable ?1:52

    Learn six steps to make a class immutable in Java by declaring the class final, fields private and final, and always cloning or copying objects rather than returning real references.

  • How to make a class Singleton ?1:34

    Learn how to implement a singleton class in Java by using a private constructor, a private static instance, and a lazy getInstance method to ensure a single object.

  • Explain the Collection Hierarchy3:12

    Explore the Java collection hierarchy: collection interface with list and set, and map as a separate interface. Compare list's order and duplicates, set's uniqueness, and map's key-value pairs.

  • What is List interface in Java ?2:26

    Focus on java list interface implementations: arraylist, linkedlist, vector, and stack; compare non-synchronous arraylist growth by 50 percent, vector doubling, insertion order, and synchronization differences.

  • What is set Interface in Java ?2:52

    Learn about the set interface in Java, including hashset, linkedhashset, and sorted set implementations, and how they ensure unique elements and control insertion or ascending order.

  • What is Queue Interface in Java ?2:03

    Examine Java queue concepts, including priority queue behavior where the highest priority item is removed first and insertion order is not preserved, and the idea of a doubly ended queue.

  • What is Map Interface in Java ?2:06

    Explore Java map interface, comparing hash map and sorted map. Learn how hash maps are non synchronized with nullable values, while sorted maps disallow null keys and maintain ascending order.

  • Why map does not extend Collection Interface ?1:29

    Examine why the map interface does not extend the collection interface, as maps store key-value pairs with a dual access mechanism, an integral part of the Java collection framework.

  • What is the difference between fail fast and fail safe Iterator ?1:50

    Contrast fail fast and fail safe iterators in Java, showing how fail fast throws concurrent modification exception on structural changes, while fail safe uses a clone and avoids the exception.

  • What is Blocking Queue ?1:17

    Understand blocking queue from the concurrent package, a thread-safe queue that lets multiple threads put and take elements safely, blocking when full to prevent more inserts.

  • Difference between synchronized collection and concurrent collection2:05

    Differentiate synchronized and concurrent collections by performance and thread safety. Divide across segments in concurrent collections to enable parallel operations, while synchronized collections like a hash map are slower.

  • Explain Internal working of Hashmap6:26

    Learn how a hash map uses a hash function to map keys to bucket indices, storing key-value pairs in an entry object, with put/get and collision handling via linked lists.

Requirements

  • Core Java

Description

Most asked Java Interview Questions you must know irrespective of the fact if you're experienced or fresher.

This course will help you to sail through basic technical Interview rounds and covers basic question that you must know before facing any Java interview.

We had to limit this course due to the Udemy limitation of uploading only 2 hours of free course to users. Thus we have to break the whole course into multiple courses but we have segregated it in basic, intermediate and advanced level so that it will help you too to identify where do you really stand before appearing in any technical discussion with IT companies.

We do have intermediate and advanced level courses upcoming in few days.

The motive of this course is just to make you interview ready and motivated and confident in the interview. What we could cover in 2 hours is :

  1. Why Java is not 100% Object Oriented

  2. Is Java Pass by value or Pass by reference

  3. What is Covariant return type in Java ?

  4. What is Equals and Hash Code contract ?

  5. Why Pointers are not used in Java ?

  6. What is JIT compiler in Java ?

  7. Why String is immutable in Java ?

  8. What is Marker Interface ?

  9. Can you override a private or static method in Java ?

  10. Does finally always execute in Java ?

  11. What methods does Object class have ?

  12. How to make class Immutable ?

  13. How to make a class Singleton ?

  14. How to break Singleton Design pattern in Java ?

  15. Explain the Collection Hierarchy

  16. What is List interface in Java ?

  17. What is set Interface in Java ?

  18. What is Queue Interface in Java ?

  19. What is Map Interface in Java ?

  20. Why map does not extend Collection Interface ?

  21. What is the difference between fail fast and fail safe Iterator ?

  22. What is Blocking Queue ?

  23. Difference between synchronized collection and concurrent collection

  24. Explain Internal working of Hashmap

  25. Why Java 8 was introduced ?

  26. What are the advantages of Java 8 ?

  27. What is Lambda expression ?

Who this course is for:

  • Everyone from college to working candidate can attend this course before attending Interviews