Java program to solve quadratic equations to print the roots of ax2+bx+c=0.
Java program to solve quadratic equations to print the roots of ax2+bx+c=0
Let's sail across an ocean of IT
Java program to solve quadratic equations to print the roots of ax2+bx+c=0
sorting using java
Sometimes we don’t wantother classes to inherit our class or overwrite methods which we defined in our class or change the value of variable from our class and this is where “final” keyword comes in picture. We can declare class, method and variable using final keyword. final class * Once we declare class with final … Read more
Encapsulation : Sometimes we have to declare some variables with private access specifier, specially variables which stores sensitive values e.g. ID, Name, BankBalance, AccountNumber, etc. So we will keep such variables private, but now no other class can access it or assign value to this private variable. So question arise is “How to assign value … Read more
Static keyword in Java Static is known as a non-access modifier. Static keyword can be used to declare the following. Variables Block Method Static Variables : In easy terms, the static variable is the variable which is common for all the object of that particular class. It can be called with or without object instance … Read more