Ads block

Showing posts with label Unit 5. Show all posts
Showing posts with label Unit 5. Show all posts
Explain the concept of Interface.
By
Jeevan Sai
10 Marks
·
OPPS WITH JAVA
·
Unit 5
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.
By
Jeevan Sai
10 Marks
·
OPPS WITH JAVA
·
Unit 5
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.
By
Jeevan Sai
5 Marks
·
OPPS WITH JAVA
·
Unit 5
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.
By
Jeevan Sai
5 Marks
·
OPPS WITH JAVA
·
Unit 5
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.
By
Jeevan Sai
5 Marks
·
OPPS WITH JAVA
·
Unit 5
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.
By
Jeevan Sai
5 Marks
·
OPPS WITH JAVA
·
Unit 5
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 »
SEARCH
LATEST
3-latest-65px
SECCIONS
- 10 Marks (14)
- 5 Marks (20)
- OPPS WITH JAVA (34)
- QUESTION BANK (1)
- Unit 1 (13)
- Unit 2 (10)
- Unit 3 (12)
- Unit 4 (9)
- Unit 5 (6)
Search This Blog
Powered by Blogger.
Blog Archive
- August 2021 (1)
- June 2021 (55)
*Java Constructor* class Main { private String name; Main() { name = "Programiz"; } public static void main(String[...
