Java Interview Questions and Answers - 2
Question: 6
What is the difference between a public and non public class?
A public class may be accessed outside of its package.
A non public class may not be accessed outside of its package.
Question: 7
What is the purpose of the System class?
The purpose of the System class is to provide access to system resources.
Question: 8
What is a JVM consists of?
Each time of a Java Application is executed then an instance of JVM, responsible for its running, is created.
A JVM instance is described in terms of subsystems, memory areas, data types, and instructions.
Question: 9
What are the different types of casting?
There are two types of casting
Casting between primitive numeric types
Casting between object references.
Casting between numeric types is used to convert larger values into smaller values. For e.g. double values to byte values.
Casting between object references helps you refer to an object by a compatible class, interface, or array type reference.
Question: 10
What is Downcasting?
Downcasting means creating from a general to a more specific type.
- Java Interview Questions and Answers
- Top 1000+ Java Interview Questions and Answers Pdf
- Top 500+ Advanced Java Interview Questions 2020-2021
- Java Interview Questions and Answers for Freshers Pdf
- Java Interview Questions and Answers for Experienced Pdf
- Java Programming Basics Interview Questions
- Java OOPS Interview Questions for 3 years experienced
- Basic Java Programs Asked in Interview with Answers Pdf
- Java Programming Interview Questions and Answers
- C | C++ | Java Interview Questions and Answers
DC Generator Questions and Answers Pdf More
Electromagnetic Induction Quiz Questions and Answers More
Basic Electronics Quiz Questions with Answers Pdf More
Wireless Communication MCQ Questions with Answers More
Digital Communication Quiz Questions and Answers Pdf More
7000+ Indian Federalism and Centre State Relations MCQ Objective Quiz More
Municipal Administration & Water Supply Department Questions & Answers More
TNPSC Physics Questions and Answers in English Pdf More
Welding Metallurgy Objective Questions and Answers Pdf More
1000+ Working Principle of Digital Logic MCQ Questions & Answers More