MindGate Solutions
10+ Cloudnine Hospital Interview Questions and Answers
Q1. Explain how Java program execute?
Java programs are executed by the Java Virtual Machine (JVM) which interprets and executes the bytecode generated by the Java compiler.
Java source code is compiled into bytecode by the Java compiler
The bytecode is platform-independent and can be executed on any device with a JVM
The JVM interprets the bytecode and executes the instructions
The JVM manages memory, handles exceptions, and provides other runtime services
Example: javac HelloWorld.java -> java HelloWorld
Q2. Why Java is most secured!?
Java is most secured due to its strong memory management, bytecode verification, and security manager.
Java's strong memory management prevents buffer overflow and other memory-related vulnerabilities.
Bytecode verification ensures that the code is safe to execute and prevents malicious code from running.
Security manager allows fine-grained control over access to system resources.
Java also has a robust set of security APIs and tools for encryption, authentication, and authoriza...read more
Q3. What is sub query and Like operator?
A subquery is a query nested within another query, and the LIKE operator is used in SQL to search for a specified pattern in a column.
A subquery is enclosed in parentheses and executed first before the main query.
The result of a subquery can be used in comparison with the main query's result.
The LIKE operator is used with the WHERE clause to search for a specified pattern in a column.
The LIKE operator allows for wildcard characters such as % (matches any sequence of character...read more
Q4. Count the number of repeated words from the given string
Count the number of repeated words in a given string
Split the string into words using a delimiter like space
Create a hashmap to store word frequencies
Iterate through the words and update the hashmap accordingly
Count the number of words with frequency greater than 1
Q5. What is four pillars of oops concepts
Encapsulation, Inheritance, Polymorphism, Abstraction
Encapsulation: Bundling data and methods that operate on the data into a single unit
Inheritance: Ability of a class to inherit properties and behavior from another class
Polymorphism: Ability to present the same interface for different data types
Abstraction: Hiding the complex implementation details and showing only the necessary features
Q6. Data base connection in sprinh boot
Database connection in Spring Boot is configured using application.properties or application.yml file.
Define database connection properties in application.properties or application.yml file
Use @EnableJpaRepositories annotation to enable JPA repositories
Use @Entity annotation to define entity classes
Use @Autowired annotation to inject the DataSource or EntityManager
Q7. What is abstract class?
Abstract class is a class that cannot be instantiated and may contain abstract methods.
Cannot be instantiated directly
May contain abstract methods that must be implemented by subclasses
Can have both abstract and non-abstract methods
Used for creating a template for other classes to inherit from
Q8. Why strings are immutable
Strings are immutable to ensure data integrity and security by preventing accidental or intentional modification.
Immutable strings prevent accidental changes to data
Enhances security by preventing data tampering
Allows for efficient memory management
Q9. Different between array and collection
Arrays are fixed in size and store elements of the same data type, while collections are dynamic in size and can store elements of different data types.
Arrays have a fixed size, while collections can dynamically resize.
Arrays store elements of the same data type, while collections can store elements of different data types.
Arrays use indexes to access elements, while collections use iterators or other methods.
Examples: Array - int[] numbers = {1, 2, 3}; Collection - List
name...read more
Q10. Explain stream api
Stream API is a feature in Java that allows processing collections of objects in a functional style.
Stream API provides a way to perform operations on a collection of objects in a declarative way.
It supports functional-style operations like map, filter, reduce, and forEach.
Streams can be created from various sources like collections, arrays, or I/O channels.
Stream operations are lazy, meaning they are only executed when a terminal operation is called.
Stream API promotes immut...read more
Interview Process at Cloudnine Hospital
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month