Placements

Placements Interview Questions and Answers

Updated 12 May 2022

Q1. What is array ? What is constructor ? What is difference between class and object ?

Ans.

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 ?

Ans.

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?

Ans.

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?

Ans.

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

Placements 2-4 years
TECH MAHINDRA FOUNDATION
4.1
Noida
M&G - Manager - Private Placements - Debt Instruments (3-5 yrs) 3-5 years
M&G Global Services
3.8
Free Placements For Graduate of 2024 batch; BPO/KPO/ITES 0-5 years
Recruitic Resources
0.0
₹ 1 L/yr - ₹ 4 L/yr
Noida
Are these interview questions helpful?
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

Interview experiences of popular companies

View all

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

Placements Interview Questions
Share an Interview
Stay ahead in your career. Get AmbitionBox app
qr-code
Helping over 1 Crore job seekers every month in choosing their right fit company
65 L+

Reviews

4 L+

Interviews

4 Cr+

Salaries

1 Cr+

Users/Month

Contribute to help millions
Get AmbitionBox app

Made with ❤️ in India. Trademarks belong to their respective owners. All rights reserved © 2024 Info Edge (India) Ltd.

Follow us
  • Youtube
  • Instagram
  • LinkedIn
  • Facebook
  • Twitter