Domains
Agile Management
Master Agile methodologies for efficient and timely project delivery.
View All Agile Management Coursesicon-refresh-cwCertifications
Scrum Alliance
16 Hours
Best Seller
Certified ScrumMaster (CSM) CertificationScrum Alliance
16 Hours
Best Seller
Certified Scrum Product Owner (CSPO) CertificationScaled Agile
16 Hours
Trending
Leading SAFe 6.0 CertificationScrum.org
16 Hours
Professional Scrum Master (PSM) CertificationScaled Agile
16 Hours
SAFe 6.0 Scrum Master (SSM) CertificationAdvanced Certifications
Scaled Agile, Inc.
32 Hours
Recommended
Implementing SAFe 6.0 (SPC) CertificationScaled Agile, Inc.
24 Hours
SAFe 6.0 Release Train Engineer (RTE) CertificationScaled Agile, Inc.
16 Hours
Trending
SAFe® 6.0 Product Owner/Product Manager (POPM)IC Agile
24 Hours
ICP Agile Certified Coaching (ICP-ACC)Scrum.org
16 Hours
Professional Scrum Product Owner I (PSPO I) TrainingMasters
32 Hours
Trending
Agile Management Master's Program32 Hours
Agile Excellence Master's ProgramOn-Demand Courses
Agile and ScrumRoles
Scrum MasterTech Courses and Bootcamps
Full Stack Developer BootcampAccreditation Bodies
Scrum AllianceTop Resources
Scrum TutorialProject Management
Gain expert skills to lead projects to success and timely completion.
View All Project Management Coursesicon-standCertifications
PMI
36 Hours
Best Seller
Project Management Professional (PMP) CertificationAxelos
32 Hours
PRINCE2 Foundation & Practitioner CertificationAxelos
16 Hours
PRINCE2 Foundation CertificationAxelos
16 Hours
PRINCE2 Practitioner CertificationSkills
Change ManagementMasters
Job Oriented
45 Hours
Trending
Project Management Master's ProgramUniversity Programs
45 Hours
Trending
Project Management Master's ProgramOn-Demand Courses
PRINCE2 Practitioner CourseRoles
Project ManagerAccreditation Bodies
PMITop Resources
Theories of MotivationCloud Computing
Learn to harness the cloud to deliver computing resources efficiently.
View All Cloud Computing Coursesicon-cloud-snowingCertifications
AWS
32 Hours
Best Seller
AWS Certified Solutions Architect - AssociateAWS
32 Hours
AWS Cloud Practitioner CertificationAWS
24 Hours
AWS DevOps CertificationMicrosoft
16 Hours
Azure Fundamentals CertificationMicrosoft
24 Hours
Best Seller
Azure Administrator CertificationMicrosoft
45 Hours
Recommended
Azure Data Engineer CertificationMicrosoft
32 Hours
Azure Solution Architect CertificationMicrosoft
40 Hours
Azure DevOps CertificationAWS
24 Hours
Systems Operations on AWS Certification TrainingAWS
24 Hours
Developing on AWSMasters
Job Oriented
48 Hours
New
AWS Cloud Architect Masters ProgramBootcamps
Career Kickstarter
100 Hours
Trending
Cloud Engineer BootcampRoles
Cloud EngineerOn-Demand Courses
AWS Certified Developer Associate - Complete GuideAuthorized Partners of
AWSTop Resources
Scrum TutorialIT Service Management
Understand how to plan, design, and optimize IT services efficiently.
View All DevOps Coursesicon-git-commitCertifications
Axelos
16 Hours
Best Seller
ITIL 4 Foundation CertificationAxelos
16 Hours
ITIL Practitioner CertificationPeopleCert
16 Hours
ISO 14001 Foundation CertificationPeopleCert
16 Hours
ISO 20000 CertificationPeopleCert
24 Hours
ISO 27000 Foundation CertificationAxelos
24 Hours
ITIL 4 Specialist: Create, Deliver and Support TrainingAxelos
24 Hours
ITIL 4 Specialist: Drive Stakeholder Value TrainingAxelos
16 Hours
ITIL 4 Strategist Direct, Plan and Improve TrainingOn-Demand Courses
ITIL 4 Specialist: Create, Deliver and Support ExamTop Resources
ITIL Practice TestData Science
Unlock valuable insights from data with advanced analytics.
View All Data Science Coursesicon-dataBootcamps
Job Oriented
6 Months
Trending
Data Science BootcampJob Oriented
289 Hours
Data Engineer BootcampJob Oriented
6 Months
Data Analyst BootcampJob Oriented
288 Hours
New
AI Engineer BootcampSkills
Data Science with PythonRoles
Data ScientistOn-Demand Courses
Data Analysis Using ExcelTop Resources
Machine Learning TutorialDevOps
Automate and streamline the delivery of products and services.
View All DevOps Coursesicon-terminal-squareCertifications
DevOps Institute
16 Hours
Best Seller
DevOps Foundation CertificationCNCF
32 Hours
New
Certified Kubernetes AdministratorDevops Institute
16 Hours
Devops LeaderSkills
KubernetesRoles
DevOps EngineerOn-Demand Courses
CI/CD with Jenkins XGlobal Accreditations
DevOps InstituteTop Resources
Top DevOps ProjectsBI And Visualization
Understand how to transform data into actionable, measurable insights.
View All BI And Visualization Coursesicon-microscopeBI and Visualization Tools
Certification
24 Hours
Recommended
Tableau CertificationCertification
24 Hours
Data Visualization with Tableau CertificationMicrosoft
24 Hours
Best Seller
Microsoft Power BI CertificationTIBCO
36 Hours
TIBCO Spotfire TrainingCertification
30 Hours
Data Visualization with QlikView CertificationCertification
16 Hours
Sisense BI CertificationOn-Demand Courses
Data Visualization Using Tableau TrainingTop Resources
Python Data Viz LibsCyber Security
Understand how to protect data and systems from threats or disasters.
View All Cyber Security Coursesicon-refresh-cwCertifications
EC-Council
40 Hours
Certified Ethical Hacker (CEH v12) CertificationISACA
22 Hours
Certified Information Systems Auditor (CISA) CertificationISACA
40 Hours
Certified Information Security Manager (CISM) Certification(ISC)²
40 Hours
Certified Information Systems Security Professional (CISSP)(ISC)²
40 Hours
Certified Cloud Security Professional (CCSP) Certification16 Hours
Certified Information Privacy Professional - Europe (CIPP-E) CertificationISACA
16 Hours
COBIT5 Foundation16 Hours
Payment Card Industry Security Standards (PCI-DSS) CertificationOn-Demand Courses
CISSPTop Resources
Laptops for IT SecurityWeb Development
Learn to create user-friendly, fast, and dynamic web applications.
View All Web Development Coursesicon-codeBootcamps
Career Kickstarter
6 Months
Best Seller
Full-Stack Developer BootcampJob Oriented
3 Months
Best Seller
UI/UX Design BootcampEnterprise Recommended
6 Months
Java Full Stack Developer BootcampCareer Kickstarter
490+ Hours
Front-End Development BootcampCareer Accelerator
4 Months
Backend Development Bootcamp (Node JS)Skills
ReactOn-Demand Courses
Angular TrainingTop Resources
Top HTML ProjectsBlockchain
Understand how transactions and databases work in blockchain technology.
View All Blockchain Coursesicon-stop-squareBlockchain Certifications
40 Hours
Blockchain Professional Certification32 Hours
Blockchain Solutions Architect Certification32 Hours
Blockchain Security Engineer Certification24 Hours
Blockchain Quality Engineer Certification5+ Hours
Blockchain 101 CertificationOn-Demand Courses
NFT Essentials 101: A Beginner's GuideTop Resources
Blockchain Interview QsProgramming
Learn to code efficiently and design software that solves problems.
View All Programming Coursesicon-codeSkills
Python CertificationInterview Prep
Career Accelerator
3 Months
Software Engineer Interview PrepOn-Demand Courses
Data Structures and Algorithms with JavaScriptTop Resources
Python TutorialThere are 2 types of data:
Number is the most primitive way of storing information in any computer language.
You can store a number in a variable, but distinct formats are used to represent a number, and a separate quantity of storage is required for each format.
The easiest format records a number that does not have a fractional part, i.e. it uses integers.
You can choose to use one byte, two, four or eight bytes when you store an integer. The lower the amount of storage you use, obviously, the lower the range of numbers you can use.
The Java integer data types are below:
You will now want to use numeric values with fractional parts, of course.
For reasons we don't have to go into, the format most used to store fractional numbers is called "floating point." A floating point variable may store a fractional number value, but you need to be conscious of the range that can be stored and the accuracy.
Java has two kinds of floating points and it is hard to try to pin down the accuracy and range they can represent. Rather, the approximate amount of accuracy numbers they provide is easier to think about:
In Java, the data type to store characters is char.
Characters are represented using Unicode. Unicode is an international character set representing all the characters.
In Java language, char ranges from 0 to 65,535.
Characters are always written within ' '.For example: char first = 'f';
String is a series of characters because, for example, "Name" is a 4 character string. String is an immutable object in java which means it is constant and cannot be altered once it is formed.
There are basically 2 ways to create a String object:
Unicode is a normal encoding 16-bit character and can represent nearly every character of the world's well-known languages.
There were numerous standards for character encoding before Unicode:
Some characters used a single byte, some two, to help multinational application codes. The same code may even represent a different character in one language and may represent other characters in another language
The Unicode scheme was created to solve the above shortcomings where each character is represented by 2 bytes.
Strictfp is a Java programming language modifier that restricts the calculation of floating points to guarantee portability. The Java virtual machine (JVM) version 1.2 introduced the strictfp command into Java and is available for use on all currently updated Java VMs.
Important points:
Java provides many types of operators which can be used according to the need. They are classified based on the functionality they provide. Some of the types are:
They are used on primitive data types to conduct easy arithmetic operations.
Assignment Operator i.e. ‘=’ is used to assign any variable to a value. It has a right-to-left associativity, i.e. the right-hand value of the operator is assigned to the left-hand variable and therefore the right-hand side value must be declared or should be a constant before it is used.
In many instances assignment operator can be coupled with other operators to create a shorter statement version called Compound Statement. For instance, we can write sum + = 5 instead of sum = sum+5.
Unary operators only require one operand. Used to increase, decrease, or deny/negate a value.
These operators are used to verify relationships such as equality, larger than, smaller than. After comparison, they return boolean results and are widely used in looping statements as well as conditional statements if not otherwise.
Few of the relational operators are below-
These operators are used to perform manipulation of individual bits of a number. They can be used with any of the integer types. They are used when performing update and query operations of Binary indexed tree.
In digital electronics, these operators are used to conduct "logical AND" and "logical OR," i.e. the feature comparable to AND gate and OR gate. One thing to remember is that if the first condition is incorrect, the second condition is not assessed, i.e. it has a short-circuiting impact.
It is widely used to test multiple decision-making conditions.
Logical operators are below-
Ternary operator is an if-else declaration shorthand variant. It has three operands, hence the ternary name.
General format is-condition ? if true : if false
The above declaration implies that if the condition is true, the statements will be executed after the '? ' otherwise execute after ': ' statements.
A Wrapper class is a class whose item wraps or includes primitive data types. When we create an object in a wrapper class, it involves a field and it is possible to store primitive data types in this field. In other words, we can wrap a primitive value in an object of the wrapper class.
There are multiple uses for the wrapper class in Java.
Primitive type in java | Wrapper class in java |
|---|---|
byte | Byte |
char | Character |
boolean | Boolean |
long | Long |
int | Integer |
short | Short |
double | Double |
float | Float |
Autoboxing in java: It means that automatic conversion to the object of their corresponding wrapper classes of primitive data types is known as autoboxing. Converting char to character, for example, long to Long, double to Double, etc.
Unboxing in java: It's just the opposite technique of autoboxing. The conversion of a wrapper class object to its corresponding primitive type is known as unboxing. For example, converting Characters into char, Long to long, Double to double, etc.
Decision-making structures have one or more conditions to be assessed or tested by the program, together with a declaration or statements to be performed if the situation is determined to be true, and optionally, other statements to be performed if the situation is found to be incorrect/false.
Use if a given condition is true, to indicate a block of code to be performed.
if (conditional statement) {
// Code block to execute if the condition is true
}
Use If the same condition is incorrect, use another to indicate a block of code to be performed.
if (conditional statement) {
// Code block to execute if the condition is true} else {
// Code block to execute if the condition is false
}
Use else if to specify a new condition to test, if the first condition is false.
if (conditional statement 1) {
// Code block to execute if the conditionstmt 1 is true
} else if (conditional statement 2) {
// block of code to execute if the conditionstmt1 is false and condition2 is true
} else {
// block of code to execute if the conditionstmt1 is false and conditionstmt2 is false
}
Use the switch to define a lot of alternative code blocks to execute. It is much like if-else.
switch(expression) {
case x:
// code block to execute
break;
case y:
// code block to execute
break;
default:
// code block to execute
}
Points to remember in switch:
Loops can execute a block of code as long as a specified condition is reached.
while loop: The while loop loops as long as a defined condition is true through a block of code:
while (condition) {
// code block to be executed
}
do/while loop: A variant of the while loop is the do / while loop. This loop will perform the block of code once, then it will repeat the loop as long as the condition is true before checking if the situation is accurate.
do {
// code block to be executed
}
while (condition);
for loop: If you understand precisely how many times you want to loop through a code block, use the for loop instead of a loop for a while:
for (statement 1; statement 2; statement 3) {
// code block to be executed
}
The java.lang.Math class contains methods that are used for performing basic numeric operations such as the elementary exponential, logarithm, square root, and trigonometric functions.
Below is the declaration for java.lang.Math class –
public final class Math
extends Object
These are some of the important methods belonging to the Math class:
Method | Description |
|---|---|
abs | Returns the absolute value of the argument |
round | Returns the closed int or long (as per the argument) |
ceil | Returns the smallest integer that is greater than or equal to the argument |
floor | Returns the largest integer that is less than or equal to the argument |
min | Returns the smallest of the two arguments |
max | Returns the largest of the two arguments |