0% found this document useful (0 votes)
20 views1 page

100 Important Questions in Java

Uploaded by

niralerashi56
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views1 page

100 Important Questions in Java

Uploaded by

niralerashi56
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

100 important questions in java

1 . what is java ? explain its main features.


=>Java is a high-level programming language widely used to
develop a variety of applications, from mobile apps to web-based
systems. It is known for its simplicity, flexibility, and platform-
independence.
The main features of Java include:

1. Object-oriented programming: Java follows the object-oriented programming (OOP) paradigm, which allows
developers to create modular and reusable code. It supports concepts such as classes, objects, inheritance, and
polymorphism.

2. Platform independence: Java programs are compiled into bytecode, which can be executed on any device or
operating system that has a JVM. This "write once, run anywhere" capability makes Java highly portable.

3. Garbage collection: Java has an automatic memory management system known as garbage collection. It
frees developers from manually managing memory allocation and deallocation, making Java programs more
robust and less prone to memory leaks.

4. Exception handling: Java provides built-in mechanisms for handling errors and exceptions. This allows
developers to write code that can gracefully handle unexpected situations, improving the reliability and
stability of Java applications.

5. Rich standard library: Java comes with a vast standard library that provides a wide range of pre-built classes
and methods for common programming tasks. This library simplifies development and reduces the need for
developers to write code from scratch.

6. Multithreading: Java supports multithreading, allowing developers to write concurrent programs that can
perform multiple tasks simultaneously. This feature is particularly useful for applications that require efficient
utilization of system resources.

7. Security: Java has built-in security features that protect against common vulnerabilities, such as
unauthorized access, data tampering, and code injection. It provides a secure execution environment for
running applications.

You might also like