What is Java and why is it platform independent?
Answer:
Java is a high-level, object-oriented programming language used to build web,
desktop, and enterprise applications.
Java is platform independent because Java code is compiled into bytecode, which
can run on any system that has a JVM (Java Virtual Machine).
That’s why Java follows the principle “Write Once, Run Anywhere.”
Difference between JDK, JRE, and JVM
• JVM (Java Virtual Machine):
Executes Java bytecode and makes Java platform independent.
• JRE (Java Runtime Environment):
Provides libraries and JVM to run Java applications.
• JDK (Java Development Kit):
Contains JRE + development tools like compiler (javac) to develop Java
programs.
In short:
JDK → Develop + Run
JRE → Run
JVM → Execute bytecode
What is OOP?
Answer:
OOP stands for Object-Oriented Programming. It is a programming approach based on
objects that contain data and methods.
The four main OOP concepts are:
• Encapsulation: Wrapping data and methods together
• Inheritance: One class acquiring properties of another
• Polymorphism: Same method, different behavior
• Abstraction: Hiding implementation details
Java follows OOP to make code reusable, secure, and maintainable.
What is Spring Boot?
Answer:
Spring Boot is a Java framework used to build standalone and production-ready
applications quickly.
It reduces configuration and provides auto-configuration, embedded servers, and easy
dependency management.
Spring Boot is widely used to create REST APIs in Java full stack applications.
What is REST API?
Answer:
REST API stands for Representational State Transfer Application Programming
Interface.
It is used for communication between client and server using HTTP methods.
Common HTTP methods:
• GET – retrieve data
• POST – create data
• PUT – update data
• DELETE – delete data
REST APIs are stateless and commonly return data in JSON format.
Difference between Array and ArrayList
Array ArrayList
Fixed size Dynamic size
Can store only same data type Stores objects
Faster Slightly slower
No built-in methods Many built-in methods
What is a database?
Answer:
A database is an organized collection of data that allows easy storage, retrieval, and
management of information.
Databases are used in applications to store user data securely.
Example: MySQL, PostgreSQL, Oracle
Explain your internship role at Spherenex
Answer:
“I am currently doing my internship at Spherenex during my 8th semester. As an intern,
I am gaining hands-on experience in software development, learning how real-time
applications are built.
I am involved in understanding project requirements, working on basic coding tasks,
and learning technologies related to Java and full stack development.
This internship has helped me improve my technical skills, teamwork, and
understanding of the software development lifecycle.”