Syncfusion
Midland Healthcare & Research Center Interview Questions and Answers
Q1. a=10,b=20 if(a==b) return a else if(a.equals(b)) return b else return a+b
The code checks if a and b are equal. If not, it returns their sum.
The '==' operator checks for value equality, while the 'equals()' method checks for object equality.
In this case, since a and b are primitive types, the '==' operator is used.
If a and b are equal, the code returns a. Otherwise, it checks if they are equal as objects using 'equals()'.
If they are equal as objects, it returns b. Otherwise, it returns the sum of a and b.
Q2. what is private ,public, protect?
Private, public, and protected are access modifiers in object-oriented programming.
Private members can only be accessed within the same class.
Public members can be accessed from anywhere.
Protected members can be accessed within the same class and its subclasses.
Access modifiers help control the visibility and accessibility of class members.
Example: class Person { private String name; public int age; protected String address; }
Q3. Def(numbers): if numbers>2 sum+= numbers return sum
Explaining the Def function with a condition and summing up numbers greater than 2.
The Def function checks if the input number is greater than 2.
If it is, the number is added to the sum variable.
The final sum is returned as output.
For example, Def(1, 2, 3, 4) would return 7 (3+4).
Q4. what is ooops? what is abtract?
Ooops is not a technical term. Abstract refers to a concept or idea rather than a specific instance.
Ooops is not a technical term used in software development.
Abstract refers to a concept or idea rather than a specific instance.
In object-oriented programming, abstract classes and methods are used to define a common interface for a group of related classes.
For example, a Shape class can be abstract and have methods like draw() and area() which are implemented by its subclasses...read more
Q5. what is class and object?
A class is a blueprint for creating objects. An object is an instance of a class.
A class is a template or blueprint that defines the properties and methods of an object
An object is an instance of a class that has its own state and behavior
Classes and objects are fundamental concepts in object-oriented programming
Example: A class 'Car' can have properties like 'color', 'model', and methods like 'start', 'stop'
Example: An object 'myCar' can be created from the 'Car' class with ...read more
Q6. what is jdk,jre,jvm?
JDK is a development kit, JRE is a runtime environment, and JVM is a virtual machine for executing Java code.
JDK includes JRE and development tools like compiler and debugger
JRE includes JVM and necessary libraries to run Java applications
JVM is responsible for interpreting Java bytecode and executing it
Example: JDK 8 includes JRE 8 and tools like javac and jdb
Example: JRE 11 includes JVM 11 and libraries like rt.jar
Interview Process at Midland Healthcare & Research Center
Top Software Developer Interview Questions from Similar Companies
Reviews
Interviews
Salaries
Users/Month