Junior Developer Trainee

Junior Developer Trainee Interview Questions and Answers

Updated 4 Oct 2024
search-icon

Q1. WHAT IS SEALED CLASS AND WHAT IS EXTENSION METHOD?

Ans.

A sealed class is a class that cannot be inherited and an extension method is a method that allows adding new methods to existing types without modifying the original type.

  • Sealed class restricts inheritance, preventing other classes from deriving from it.

  • Extension methods allow adding new methods to existing types without modifying the original type.

  • Example of sealed class: 'sealed class MyClass { }'

  • Example of extension method: 'public static class StringExtensions { public s...read more

Q2. what is meant by runtime polymorphism?

Ans.

Runtime polymorphism is the ability of an object to take on multiple forms during runtime.

  • It is achieved through method overriding and inheritance.

  • The decision of which method to call is made at runtime based on the object's actual type.

  • It allows for more flexible and dynamic code.

  • Example: Animal class with different subclasses like Dog, Cat, etc. Each subclass can have its own implementation of the same method like makeSound().

Junior Developer Trainee Interview Questions and Answers for Freshers

illustration image

Q3. DIFFERENCE BETWEEN ABSTRACT AND INTERFACE?

Ans.

Abstract class can have both abstract and non-abstract methods, while interface can only have abstract methods.

  • Abstract class can have constructors, fields, and methods, while interface cannot have any implementation.

  • A class can only extend one abstract class, but can implement multiple interfaces.

  • Abstract classes are used to define common characteristics among subclasses, while interfaces are used to define a contract for classes to implement.

  • Example: Abstract class - Animal...read more

Frequently asked in, ,

Q4. DIFFERENCE BETWEEN SESSION AND APPLICATION?

Ans.

Session is specific to a user's interaction with a website, while application is global to all users.

  • Session stores user-specific data, while application stores data accessible to all users.

  • Session is temporary and expires after a period of inactivity, while application data persists.

  • Session is used for user authentication and personalization, while application data is used for global settings and configurations.

Are these interview questions helpful?

Q5. WHAT IS DELEGATE?

Ans.

A delegate is a type that represents references to methods with a specific parameter list and return type.

  • Delegates are similar to function pointers in C++ or pointers to member functions in C++/CLI.

  • Delegates allow methods to be passed as parameters.

  • Delegates can be used to define callback methods.

  • Delegates can invoke the methods they reference.

  • Delegates are type-safe and secure.

Q6. What is volley library

Ans.

Volley is an HTTP library that makes networking for Android apps easier and faster.

  • Volley library handles network requests in a background thread

  • It provides request queuing and prioritization

  • Supports request cancellation and retry policies

  • Used for fetching data from the internet in Android apps

Share interview questions and help millions of jobseekers 🌟

man-with-laptop

Q7. WHAT IS MIDDLEWARE

Ans.

Middleware is software that acts as a bridge between different applications or components, allowing them to communicate and share data.

  • Middleware helps in managing communication between different systems or components.

  • It can provide services such as authentication, logging, and caching.

  • Examples of middleware include web servers like Apache or Nginx, and frameworks like Express.js in Node.js.

Junior Developer Trainee Jobs

0
Interview Tips & Stories
Ace your next interview with expert advice and inspiring stories

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

Junior Developer Trainee 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

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