Ads block

Banner 728x90px
Showing posts with label Unit 5. Show all posts
Showing posts with label Unit 5. Show all posts

Explain the concept of Interface.


Java Interface An interface is a fully abstract class. It includes a group of abstract methods (methods without a body). We use the  interface  keyword to cr…
Read more »

Explain multiple inheritances with example.


Explain multiple inheritances with example.
Inheritance is one of the key features of OOP that allows us to create a new class from an existing class. The new class that is created is known as  subclas…
Read more »

Write a java program to find the given number is even or odd Number.


Check whether a number is even or odd using if...else statement import java.util.Scanner; public class EvenOdd { public static void main (String…
Read more »

Write a java program to find the factorial of the given number.


Factorial Program in Java Factorial Program  in Java: Factorial of n is the  product of all positive descending integers . Factorial of  n  is denoted by n!.…
Read more »

Explain about Type Casting.


Java Type Casting Type casting is when you assign a value of one primitive data type to another type. In Java, there are two types of casting: Widening Casti…
Read more »

Explain Single Inheritance with program.


Explain Single Inheritance with program.
Inheritance in Java Inheritance in Java  is a mechanism in which one object acquires all the properties and behaviors of a parent object. It is an important …
Read more »