What is Enums An enum type is a special data type which contains a fixed set of constants. Java Enums can be thought of as classes which have…
What is Interface An interface is a group of related methods with empty bodies. It is another way to achieve abstraction. Implementation: To implement an…
What is Abstraction Data abstraction is the process of hiding certain details and showing only essential information to the user. Abstraction is an important concept…
What are Nested Classes The Java programming language allows you to define a class within another class or interface. Such a class is called a…
What is Method Overriding In inheritance, if the same method is defined in both the superclass and the subclass, then the method of the subclass…
What is Encapsulation The meaning of Encapsulation is to make sure that “sensitive” data is hidden from users. We know that private variables can only be accessed within the…
এখানে System হচ্ছে ক্লাস নেম। out হচ্ছে System ক্লাসের একটি static variable. যেটি আবার Printstream ক্লাসের object(reference).আমরা জানি static variable কে ব্যবহার করতে অবজেক্ট তৈরি…
What is field in java? Java fields are variables within Java classes. Both Java fields and methods have a type, or the type of data they…
What is Polymorphism? Polymorphism in Java is a concept by which we can perform a single action in different ways. Polymorphism is derived from 2…
What is Inheritance Inheritance is one of the key features of OOP that allows us to create a new class from an existing class. The…