Infosys
Mindarika Interview Questions and Answers
Q1. What use of JVM in java?
JVM is used to execute Java bytecode and provide platform independence.
JVM stands for Java Virtual Machine.
It interprets compiled Java code and executes it.
JVM provides platform independence by converting bytecode to machine-specific code.
JVM also manages memory allocation and garbage collection.
Examples of JVM-based languages include Kotlin and Scala.
Q2. What is Java Program?
Java Program is a set of instructions written in the Java programming language that can be executed by a computer.
Java Program is a collection of classes and methods that define the behavior of a software application.
It is written in the Java programming language and can be executed on any platform that has a Java Virtual Machine (JVM).
Java Programs are compiled into bytecode, which is then interpreted and executed by the JVM.
They can perform various tasks such as data manipu...read more
Q3. What is Class?
A class is a blueprint for creating objects in object-oriented programming.
A class is a template that defines the properties and behaviors of objects.
It encapsulates data and methods that operate on that data.
Objects are instances of a class.
Classes can inherit properties and behaviors from other classes through inheritance.
Example: class Car { String color; void start() { ... } }
Q4. Java programming uses?
Java programming uses object-oriented programming principles and a robust set of libraries and frameworks.
Java uses object-oriented programming principles such as encapsulation, inheritance, and polymorphism.
Java has a rich set of libraries and frameworks for various purposes like GUI development, networking, database connectivity, etc.
Java supports multithreading, exception handling, and dynamic memory allocation.
Java programs are compiled into bytecode and run on the Java V...read more
Q5. Who is java Father?
James Gosling is considered the father of Java programming language.
James Gosling is a Canadian computer scientist who created the Java programming language.
He developed Java while working at Sun Microsystems in the mid-1990s.
Java was initially designed for interactive television, but it quickly gained popularity for its platform independence and object-oriented features.
Gosling's team also developed the original Java compiler and virtual machine.
Java has since become one of ...read more
Q6. What is object?
An object is a fundamental concept in object-oriented programming, representing a real-world entity with its own state and behavior.
An object is an instance of a class.
It encapsulates data and methods.
Objects can interact with each other through method calls.
Example: A car object can have properties like color and speed, and methods like start() and stop().
Q7. Expand of JRE?
JRE stands for Java Runtime Environment.
JRE is a software package that provides the necessary runtime environment for Java applications to run.
It includes the Java Virtual Machine (JVM), class libraries, and other supporting files.
JRE is required to run Java applications on a computer.
Examples of Java applications that require JRE include Eclipse, NetBeans, and Minecraft.
Reviews
Interviews
Salaries
Users/Month