Tip 1 : Must do Previously asked Interview as well as Online Test Questions.
Tip 2 : Go through all the previous interview experiences from Codestudio and Leetcode.
Tip 3 : Do at-least 2 good projects and you must know every bit of them.
Tip 1 : Have at-least 2 good projects explained in short with all important points covered.
Tip 2 : Every skill must be mentioned.
Tip 3 : Focus on skills, projects and experiences more.
The test is not very difficult if you got basic skills in aptitude, but the most important thing is managing time. The level of difficulty was moderate.
Tips: Do not waste time on verbal questions which have a direct answer ( synonyms and antonyms) which you are not very sure of.
Just try making a smart guess when you have a doubt by elimination or something.
The interviewer was really cool. He realized that I mostly work on java applications so he chose to ask me stuff related to that. He didn't want me to know the answer well but just wanted me to approach to it, maybe think more. He went through my resume back and forth and asked mostly about all my projects and their logic and how could I take them to the next level.
Tips: Be confident. Its okay not to know any answer, just try giving it a shot in the approach.
Difference between Abstract Class and Interface
1. Type of methods: Interface can have only abstract methods. An abstract class can have abstract and non-abstract methods. From Java 8, it can have default and static methods also.
2. Final Variables: Variables declared in a Java interface are by default final. An abstract class may contain non-final variables.
3. Type of variables: Abstract class can have final, non-final, static and non-static variables. The interface has only static and final variables.
4. Implementation: Abstract class can provide the implementation of the interface. Interface can’t provide the implementation of an abstract class.
5. Inheritance vs Abstraction: A Java interface can be implemented using the keyword “implements” and an abstract class can be extended using the keyword “extends”.
6. Multiple implementations: An interface can extend another Java interface only, an abstract class can extend another Java class and implement multiple Java interfaces.
7. Accessibility of Data Members: Members of a Java interface are public by default. A Java abstract class can have class members like private, protected, etc.
Difference between final, finally and finalize
1. Definition : final is the keyword and access modifier which is used to apply restrictions on a class, method or variable. finally is the block in Java Exception Handling to execute the important code whether the exception occurs or not. finalize is the method in Java which is used to perform clean up processing just before object is garbage collected.
2. Applicable to: Final keyword is used with the classes, methods and variables. Finally block is always related to the try and catch block in exception handling. finalize() method is used with the objects.
3. Functionality:
final :
(1) Once declared, final variable becomes constant and cannot be modified.
(2) final method cannot be overridden by sub class.
(3) final class cannot be inherited.
finally :
(1) finally block runs the important code even if exception occurs or not.
(2) finally block cleans up all the resources used in try block
finalize :
finalize method performs the cleaning activities with respect to the object before its destruction.
4. Execution : Final method is executed only when we call it. Finally block is executed as soon as the try-catch block is executed. The execution of finally is not dependant on the exception. finalize method is executed just before the object is destroyed.
Difference between Private and Final Access modifier
1. Private Access Modifier is not applicable to top-level classes. Final Access Modifier modifier is applicable to top-level classes.
2. We cannot access private methods outside the class in Private Access Modifier. We can access the final method outside the class in Final Access Modifier .
3. We can hide the private method in Private Access Modifier. The final method cannot be hidden in Final Access Modifier.
4. Private Access Modifier is applicable to both the enum and constructor. The final modifier is not applicable to both the enum and constructor.
5. Private Access Modifier is not applicable for local variables. The final modifier is the only modifier which is applicable for local variables.
Steps for establishing JDBC connection
Step 1: Import the database.
Step 2: Loading the drivers. In order to begin with, you first need to load the driver or register it before using it in the program.
Registration is to be done once in your program. You can register a driver in one of two ways mentioned below as follows:
2-A Class.forName()
Here we load the driver’s class file into memory at the runtime. No need of using new or create objects.
2-B DriverManager.registerDriver()
DriverManager is a Java inbuilt class with a static member register. Here we call the constructor of the driver class at compile time.
Step 3: Establish a connection using the Connection class object
After loading the driver, establish connections via as shown below as follows:
Connection con = DriverManager.getConnection(url,user,password)
user: Username from which your SQL command prompt can be accessed.
password: password from which the SQL command prompt can be accessed.
con: It is a reference to the Connection interface.
Url : Uniform Resource Locator which is created as shown below:
String url = “ jdbc:oracle:thin:@localhost:1521:xe”
Where oracle is the database used, thin is the driver used, @localhost is the IP Address where a database is stored, 1521 is the port number and xe is the service provider. All 3 parameters above are of String type and are to be declared by the programmer before calling the function.
Step 4: Create a statement
Once a connection is established you can interact with the database. The JDBCStatement, CallableStatement, and PreparedStatement interfaces define the methods that enable you to send SQL commands and receive data from your database.
Use of JDBC Statement is as follows:
Statement st = con.createStatement();
Step 5: Execute the query. Now comes the most important part i.e executing the query. The query here is an SQL Query.
What is JSON?
JSON stands for JavaScript Object Notation JSON is a lightweight format for storing and transporting data. It is often used when data is sent from a server to a web page
What do you know about garbage collection?
Garbage collection in Java is the process by which Java programs perform automatic memory management. Java programs compile to bytecode that can be run on a Java Virtual Machine, or JVM for short. When Java programs run on the JVM, objects are created on the heap, which is a portion of memory dedicated to the program. Eventually, some objects will no longer be needed. The garbage collector finds these unused objects and deletes them to free up memory.
Java garbage collection is an automatic process. Automatic garbage collection is the process of looking at heap memory, identifying which objects are in use and which are not, and deleting the unused objects. An in-use object, or a referenced object, means that some part of your program still maintains a pointer to that object. An unused or unreferenced object is no longer referenced by any part of your program. So the memory used by an unreferenced object can be reclaimed. The programmer does not need to mark objects to be deleted explicitly. The garbage collection implementation lives in the JVM.
I wouldn't say it went great but it was fine. I did not think I would clear it as for most of the questions the interviewer seemed disappointed and wanted more out of me.
1. Tell me more about your achievements
2. What sort of projects do you work on ?
3. What is the difference between a hardworker and a smartworker?
4. What makes you say that you are more of a developer than an analyst ?
Tip 1 : Keep smiling.
Tip 2 : Only put things which you are thorough about, in your resume.
Tip 3 : Employers want to understand how you use your time and energy to stay productive and efficient. Be sure to emphasize that you adhere to deadlines and take them seriously.
Tip 4 : Talk about a relevant incident that made you keen on the profession you are pursuing and follow up by discussing your education.

Here's your problem of the day
Solving this problem will increase your chance to get selected in this company
What is recursion?