For Abstract class
you should have knowledge of Abstract
methods in java. An Abstract method
is nothing but a simple method in java but without body or say it doesn’t have
statements into it. It only contains the declaration of method
What do you understand with INTERFACE word?
Till Java
7, Interfaces are quite similar to Classes of java but, you cannot create
instance of an Interface and their
methods are declared without any body.
We know
there are four main features of Object Oriented Language one of them is Abstraction.
Abstraction means
Many students want to
understand Time Complexity of algorithms but they don’t. Actually some of them
don’t know what Time Complexity is.
First you have to
understand a thing before writing a code we have to check how much time it’s
algorithm would take to execute but that execution time should be platform
independent (such as: operating system, programming language etc.)
Why would I am saying
platform independent let’s understand with simple example:
What are the CRUD operations?
CRUD stands for create, read, update and delete. These are the four basic functions in any database.
We can start with creating database in MySql.
# Syntax
CREATE DATABASE database_name;
Example:
CREATE DATABASE finallygot_db;
How you can delete your created database
For learning this program you should know what are prime numbers. If i say about definition
"A prime number is a whole number greater than 1, whose only two whole-number factors are 1 and itself. The first few prime numbers are 2, 3, 5, 7, 11, 13, 17, 19, 23, and 29. "
Means, any number whose only factors (divisible by) are 1 and own number itself.
Zero and one are only numbers which we can't say prime.
Source Code:
OUTPUT:
Given Number is Prime
In all sequential circuits, the effect of all previous inputs on the outputs is represented by
a state of the circuit. Thus, the output of the circuit at any time depends upon its current
state and the input. These also determine the next state of the circuit. The relationship
that exists among the inputs, outputs, present states and next states can be specified
by either the state table or the state diagram.
State Table
The state table representation