![]() |
![]() |
A job interview is an interview consisting of a conversion between a job applicant And a representative of an employer which is conducted to assess whether the applicant Should be hired.
Many good candidates are rejected because they don’t handle interviewers and their questions well. You should go well prepared for any interview if you want to get selected.
FOR APPLICATION DEVELOPEMENT
FOR WEB DEVELOPMENT
OTHER SKILLS (Application Specific)
Qn. What is Java?
Java is a general-purpose programming language. It is high level programming language like C/C++ having extra features like Architecture neutral,Platform Independent, Portable, Distributed, Multithreaded, Dynamic, Robust, Secure.
Qn. What is Platform Independent?
A platform is hardware and software on which application can run, Java does not depends on any platform. The compiled code of java program can be executed on any platform without writting the code again.
Qn. What is Architectural-Neutral?
It means object file generated by java is executed on many processors, Operating system upgrades or processor upgrades doesn't effect on program.
Qn. Why main method is public static?
By writting main method as public it becomes visible all other classes such that anyone can access it. Static allows main method to be called before an object of the class has been created. It is required because main method is called by the JVM before any objects are created.
Qn. What is JVM?
JVM is Java Virtual Machine which provides the Runtime Environment for execution of Byte Code.
Qn. Can we overload main method? If yes then How?
Yes we can overload main method in Java by writting different parameters list instead of Array of String argument type.
Qn. Can we execute Java program without main()?
Yes we can compile as well as run the java program without main method. It done by writting the code inside the static block.
Qn. What is the Output of Operation on Logical Operators?
Logical operators produces the boolean result either True or False after performing the operation.
Qn. What the different types of Variables?
Java has 3 types of variables such as Local variables,Instance variables and Static varibles/class variables.
Qn. What is the default datatype of floating point numbers?
Double is the default datatype of the floating point numbers.
Qn. How much space is required to store boolean value?
1 bit memory space is required to store boolean value.
Qn. What is Class?
A class is the blueprint from which individual objects are created. It describes the state or behaviour of the object of class type.
Qn. What is Object?
An object is an instance of a class. Each object consist of state(means variable) and behaviour(methods).
Qn. What is Constructor?
A constructor is special method which initializes an object immediately upon creation.
Qn. What is Abstraction?
Abstraction refers to the concept of hiding the internal details and displaying only the functionality.
Qn. What is this keyword?
This keyword is used to refer current object of a class. It also used to avoid the name conflicts while referring the members.
Qn. What is super keyword?
Super keyword refers the parent class referrence. It is used to invoke the super class constructor from subclass constructor function.
Qn. What is final keyword?
The final keyword allows us to prevent same thing defining again or modifying later in the program
Qn. What is final variable?
The value of final variable never be changed in the program. It will always act as constant.
Qn. Can we inherit final method?
Yes. we can inherit the final method but cannot override it in child class.
Qn. Can we declare a final constructor?
No. Because constructor is never inherited.
Qn. What is Interface? Why we need it?
Interface is also known as kind or type of a class. It contains only abstract methods and final fields. It is required to achive the multiple inheritance and complete abstraction in java.
Qn. Can we declare final Interface?
No. Because if we declare final interface then we cannot use it through implements by other class.
Qn. What is Package Concept?
Packages are used for group classes and interfaces together. It is same as directory which stores the data in hierachical manner.
Qn. Which is the default package in Java?
java.lang is the default package in Java.
Qn. What are different access modifiers?
It represents the scope of the methods or fields for accessing in other classes. There are 4 types of access modifiers as
Qn. What are the non access modifiers?
Non access modifiers are static, abstract, volatile, native, transient, synchronized etc.
Qn. What is Association?
Association defines the relationship between objects. It can be of any type such as one-to-one, one-to-many, many-to-many.
Qn. What is Static import?
When we import static then we can access the static members directly without specifieng the class name.
Qn. What is Composition?
In Composition concept two classes or entities are highly dependent on each other. For example : Human and Heart. Without heart we cannot survive.
Qn. What are the benefits of cloning of method?
The cloning of method saves the extra processing task for creating the same copy of an object. It takes less processing task.
Qn. What is Exception?
An Exception is a condition that is caused by a run-time error in a program. It disturbs the normal execution flow of program.
Qn. How to handle Exception?
There are 4 keywords used to handle the exception.
Qn. What is the base class of all Exceptions/Error?
Throwable class.
Qn. What is difference between Checked and Unchecked Exception?
Checked Exception are checked at compile time. Unchecked exceptions are not checked at compile compile instead they are checked at Runtime.
Qn. What are the 5 Unchecked Exceptions?
Unchecked Exceptions are
Qn. Which class Handles the all exceptions?
Exception class
Qn. Can we write try without catch?
Yes. we can write try block without catch but try block must be followed by finally block.
Qn. What is the purpose of Finally block?
Finally block is always executed after the try-catch statement. It mainly used for closing files, closing database connections, deallocating resources etc.
Qn. What is difference between throw and throws?
Throw is used to explicitly(user defined) throw an exception by instance. Throws is used to declare an Exception by class.
Qn. What is Thread?
Thread is a smallest part of program which is used to perform multitasking. A program can be divided into multiple threads to perform concurrent execution.
Qn. How to create a Thread?
There are two ways to create a Thread in java.
Qn. Which is better way to create a Thread? Why?
By implementing Runnable interface because.
What are the different methods of Thread class?
Java thread has different methods to perform operations on Thread such as
Qn. Can we start one Thread twice?
No. It will throw an exception called IllegalThreadStateException.
Qn. What is race condition in Thread?
Race conditions are the programming bugs or errors occurs when Java programs are in concurrent execution which tries to access same environment.
Qn. Can we share data between two threads?
Yes. It is done by using shared object or by using BlockingQueue Data structure.
Qn. What is the Task of Thread Schedular?
Qn. What is Thread Safety?
Thread Safety is a property of an object which guarantees that if it is executed it will behave as expected.
Qn. What is purpose of Join() method?
It causes the currently running threads to stop executing until the thread joins with completing its task.
Qn. What is Applet?
Applet is a dynamic and interactive java program which runs inside the web page
Qn. What are the types of Applet?
There are two types of Applets : Local applet and Remote applet
Qn. Which side Applet works on?
Applet works on Client side.
Qn. Which is the super class of Applet?
Panel is the super class of Applet.
Qn. Which is the Default layout for Applet?
FlowLayout is the default layout for Applet.
Qn. What things need to import run Applet?
For Applet : java.applet and java.awt
Qn. Which method is required to display output of Applet?
print() method
Qn. Which method is used to display status on Status Bar?
showStatus() method is used.