Placements
Placements Interview Questions and Answers
Q1. What is array ? What is constructor ? What is difference between class and object ?
Array is a collection of similar data types. Constructor is a special method used to initialize objects. Class is a blueprint while object is an instance of a class.
Array is used to store multiple values in a single variable.
Constructor is called when an object of a class is created.
Class defines the properties and methods of an object while object is an instance of a class.
Example of array: int[] numbers = {1, 2, 3};
Example of constructor: public class Car { public Car() { /...read more
Q2. What is the difference between C, C++ and Java ?
C is a procedural language, C++ is an object-oriented language, and Java is a class-based object-oriented language.
C is a low-level language with limited abstraction and no built-in support for object-oriented programming.
C++ is an extension of C with added support for object-oriented programming, templates, and exception handling.
Java is a high-level language with automatic memory management, platform independence, and a large standard library.
C and C++ are compiled language...read more
Q3. What is the difference between JVM, JDK and JRE?
JVM is a virtual machine that executes Java bytecode. JDK is a development kit that includes JRE and tools for developing Java applications. JRE is a runtime environment that executes Java bytecode.
JVM stands for Java Virtual Machine and is responsible for executing Java bytecode.
JDK stands for Java Development Kit and includes JRE along with tools for developing Java applications.
JRE stands for Java Runtime Environment and provides a runtime environment for executing Java by...read more
Q4. What is static memory allocation in C?
Static memory allocation is a way of allocating memory at compile-time.
Memory is allocated before the program starts executing
The size of memory is fixed and cannot be changed during runtime
Variables declared with static keyword are stored in static memory
Example: int x; //allocated in static memory
Example: static int y; //allocated in static memory
Placements Jobs
Calculate your in-hand salary
Confused about how your in-hand salary is calculated? Enter your annual salary (CTC) and get your in-hand salary
Reviews
Interviews
Salaries
Users/Month