CGI Interview Questions – Set 1
CGI had arranged a walk-in drive at Bangalore location and I have appeared for Java Developer position. There were total three technical rounds and the difficulty level was easy to medium. I was allocated a slot from 9:30 am to 1:00 pm, but the interview process took a full day. First Technical Round Tell me […]
Java Variables Interview Questions
Hello Developers, In this article, you will learn basics of java variables. If you are preparing for your first ever java interview, then you must go through all the questions mentioned in this article. It will definitely help you clear all your doubts related to java variables. After reading this article, you will be able to […]
Java Method Overriding Interview Questions
In our previous article, we have discussed tricky programming questions based on method overloading. However, Method overriding programming questions are more interesting and requires depth understanding of the concept than that of method overloading. Before moving to programming questions, lets understand the basic concepts of method overriding. Method Overriding Using method overriding, child class can […]
Java Method Overloading Interview Questions
After interviewing large set of candidates, we have come to conclusion that most of them fail to satisfactory explain basic OOPs concepts like difference between abstraction and encapsulation, static binding vs dynamic binding, co-varient return types, access modifiers scoping and checked exception handling in method overriding and overloading. Even if they are able to explain it well, interviewer […]
Marker Interface Interview Questions
The interface in java is a mechanism to achieve abstraction and it is one of the most discussed topic in entry and mid level java developer interviews. In our previous articles, we have seen various interface related topics like Interface Evolution in Java, Difference between interface and abstract class and Functional interface in java 8. In this post, we are going to […]
What is magic number CAFEBABE in java class file?
Java Compiler compiles a java source code into bytecode and stores it into .class file which will then get executed by JVM. Everybody knows about it. But do you know each class file in Java starts with magic number CAFEBABE? compelling, isn't it? 😀 After reading this article, you will be able to answer below questions: […]
Access Modifiers in Java
In this article, we will discuss one of the basic feature of Java- Access Modifiers. As the name suggests access modifiers in Java helps to restrict the scope of a class, constructor, variable, method or data member. Assigning an access modifier to a class, constructor, field or method is also sometimes referred to as "marking" that […]
What is the use of private constructor in java?
In Java, we can use any access modifier (i.e. public, protected or private) with constructor. So, what are the uses of making constructor private? First thing that strikes your mind is Singleton Design Pattern which is also one of the most asked Core Java Interview Question to the 3-4 yr exp Java developers. Apart from creating singleton class, private constructor […]
Interface vs Abstract class in Java
Interface has been evolved a lot in last two releases of java. Refer interface evolution in java for the same. However, there are still many differences between interface and abstract class. It is one of the most asked interview questions for entry level java developer interviews. Even though both are used to achieve abstraction in java, there are significant differences […]
final keyword in Java
final is a keyword in Java. It can be used with variable, method or class. In this article we will see how we can make variable, method or class final in java and what are the advantages of doing so. If we make a method final, we can not override it in subclass.If we make […]