This course is specially made for beginners, No prior programming knowledge required.
Get our private course "Test and improve your Java skills" FREE with this course.
100% FREE coupon available inside the course!
This course is loaded with
1. Almost all the concepts under core Java
2. Multi-threading basics
3. Introduction to Collections Framework
4. Introduction to Java Generics
5. Introduction to Lambda Expression
Why you should take this course?
1. It's one of the best course for beginners in Java
2. This course is loaded with almost all required information about core Java
3. It's a one stop destination for beginners in Java
4. Our team has created the curriculum in such a way that learning Java was never so easy before!
5. Every video is researched and developed!
6. We have kept the lectures short and simple
7. We have used special video editing techniques e.g. ZOOM & PAN, cursor effects to make lectures easy on eyes
8. This is a well organised course
1) Java is Easy to learn
2) Java is an Object Oriented Programming Language
3) Java has Rich API
4) Powerful development tools e.g. Eclipse , Netbeans
5) Great collection of Open Source libraries
6) Wonderful community support
7) Java is FREE
8) Excellent documentation support - Javadocs
9) Java is Platform Independent
10) Java is Everywhere
Thanks enrolling into the course, In order to start programing in Java we only need JDK (Java development kit). The videos demonstrate how to download and setup system for Java.
Eclipse IDE is most widely used IDE in industry. In this video, Author has explained hoe to download and setup Eclipse IDE for Java programmers.
Its demonstration videos to show how to code “Hello world” program in Java using Eclipse IDE.
Java has 50 keywords; we have checked and discussed these keywords in this video.
1. Class names should be capitalized
2. Interface names should be capitalized like class names.
3. Methods should be verbs, in mixed case with the first letter lowercase, with the first letter of each internal word capitalized.
4. Variables: Lowercase first letter. Internal words start with capital letters.
5. Package name should be in lowercase letter
6. Constants name should be in uppercase letter.
Variables are constants are basic building block of any programming language, In this video we are going to check the same with respect with Java.
How Java decides, how much memory to occupy for a data. Data type is the answer. Data type is basic building block of any programming language.
Primitive Data Types
byte data type is an 8-bit signed two's complement integer. It has a minimum value of -128 and a maximum value of 127 (inclusive). The
byte data type can be useful for saving memory in large arrays, where the memory savings actually matters. They can also be used in place of
int where their limits help to clarify your code; the fact that a variable's range is limited can serve as a form of documentation.
short data type is a 16-bit signed two's complement integer. It has a minimum value of -32,768 and a maximum value of 32,767 (inclusive). As with
byte, the same guidelines apply: you can use a
short to save memory in large arrays, in situations where the memory savings actually matters.
int: By default, the
int data type is a 32-bit signed two's complement integer, which has a minimum value of -231 and a maximum value of 231-1. In Java SE 8 and later, you can use the
int data type to represent an unsigned 32-bit integer, which has a minimum value of 0 and a maximum value of 232-1. Use the Integer class to use
int data type as an unsigned integer. See the section The Number Classes for more information. Static methods like
divideUnsigned etc have been added to the
Integer class to support the arithmetic operations for unsigned integers.
long data type is a 64-bit two's complement integer. The signed long has a minimum value of -263 and a maximum value of 263-1. In Java SE 8 and later, you can use the
long data type to represent an unsigned 64-bit long, which has a minimum value of 0 and a maximum value of 264-1. Use this data type when you need a range of values wider than those provided by
Long class also contains methods like
divideUnsigned etc to support arithmetic operations for unsigned long.
float data type is a single-precision 32-bit IEEE 754 floating point. Its range of values is beyond the scope of this discussion, but is specified in the Floating-Point Types, Formats, and Values section of the Java Language Specification. As with the recommendations for
short, use a
float (instead of
double) if you need to save memory in large arrays of floating point numbers. This data type should never be used for precise values, such as currency. For that, you will need to use the java.math.BigDecimal class instead. Numbers and Strings covers
BigDecimal and other useful classes provided by the Java platform.
double data type is a double-precision 64-bit IEEE 754 floating point. Its range of values is beyond the scope of this discussion, but is specified in the Floating-Point Types, Formats, and Values section of the Java Language Specification. For decimal values, this data type is generally the default choice. As mentioned above, this data type should never be used for precise values, such as currency.
boolean data type has only two possible values:
false. Use this data type for simple flags that track true/false conditions. This data type represents one bit of information, but its "size" isn't something that's precisely defined.
char data type is a single 16-bit Unicode character. It has a minimum value of
'\u0000' (or 0) and a maximum value of
'\uffff' (or 65,535 inclusive).
Non-primitive—which include Classes, Interfaces, and Arrays.
Here is a demonstration video on , How we make using of variable under Java.
In this video we have discussed on Java laterals. Here is a documentation provided by oracle.
You may have noticed that the
new keyword isn't used when initializing a variable of a primitive type. Primitive types are special data types built into the language; they are not objects created from a class. A literal is the source code representation of a fixed value; literals are represented directly in your code without requiring computation. As shown below, it's possible to assign a literal to a variable of a primitive type:
boolean result = true; char capitalC = 'C'; byte b = 100; short s = 10000; int i = 100000;
An integer literal is of type
long if it ends with the letter
l; otherwise it is of type
int. It is recommended that you use the upper case letter
L because the lower case letter
l is hard to distinguish from the digit
Values of the integral types
long can be created from
int literals. Values of type
long that exceed the range of
int can be created from
long literals. Integer literals can be expressed by these number systems:
For general-purpose programming, the decimal system is likely to be the only number system you'll ever use. However, if you need to use another number system, the following example shows the correct syntax. The prefix
0x indicates hexadecimal and
0b indicates binary:
// The number 26, in decimal int decVal = 26; // The number 26, in hexadecimal int hexVal = 0x1a; // The number 26, in binary int binVal = 0b11010;
A floating-point literal is of type
float if it ends with the letter
f; otherwise its type is
double and it can optionally end with the letter
The floating point types (
double) can also be expressed using E or e (for scientific notation), F or f (32-bit float literal) and D or d (64-bit double literal; this is the default and by convention is omitted).
double d1 = 123.4; // same value as d1, but in scientific notation double d2 = 1.234e2; float f1 = 123.4f;
Literals of types
String may contain any Unicode (UTF-16) characters. If your editor and file system allow it, you can use such characters directly in your code. If not, you can use a "Unicode escape" such as
'\u0108' (capital C with circumflex), or
"S\u00ED Se\u00F1or"(Sí Señor in Spanish). Always use 'single quotes' for
char literals and "double quotes" for
String literals. Unicode escape sequences may be used elsewhere in a program (such as in field names, for example), not just in
The Java programming language also supports a few special escape sequences for
\n (line feed),
\f (form feed),
\r (carriage return),
\" (double quote),
\' (single quote), and
There's also a special
null literal that can be used as a value for any reference type.
null may be assigned to any variable, except variables of primitive types. There's little you can do with a
null value beyond testing for its presence. Therefore,
null is often used in programs as a marker to indicate that some object is unavailable.
Finally, there's also a special kind of literal called a class literal, formed by taking a type name and appending "
.class"; for example,
String.class. This refers to the object (of type
Class) that represents the type itself.
In Java SE 7 and later, any number of underscore characters (
_) can appear anywhere between digits in a numerical literal. This feature enables you, for example. to separate groups of digits in numeric literals, which can improve the readability of your code.
For instance, if your code contains numbers with many digits, you can use an underscore character to separate digits in groups of three, similar to how you would use a punctuation mark like a comma, or a space, as a separator.
The following example shows other ways you can use the underscore in numeric literals:
long creditCardNumber = 1234_5678_9012_3456L; long socialSecurityNumber = 999_99_9999L; float pi = 3.14_15F; long hexBytes = 0xFF_EC_DE_5E; long hexWords = 0xCAFE_BABE; long maxLong = 0x7fff_ffff_ffff_ffffL; byte nybbles = 0b0010_0101; long bytes = 0b11010010_01101001_10010100_10010010;
You can place underscores only between digits; you cannot place underscores in the following places:
Demonstration video where the author has shown literals in action.
Type casting is a basic but very important operation. Here is what author needs to say about what type casting actually is.
As we know what is typecasting, let's check the type casting using primitive data type in action.
When it's come to user input in Java, it's little different when we compare programming language like C, C++, Php. Let's check how to take user input in Java.
An operator is a symbol that tells the compiler to perform specific mathematical or logical
Types of operators
1. Relational Operators
2. Misc. Operators
3. Logical Operators
4. Arithmetic Operators
5. Bitwise Operators
6. Assignment Operators
7. instanceof Operator
Demonstration video for usage of Increment/Decrement operator as postfix and prefix. Concept is simple and good to know. Let's check!
Decision making is about deciding the order of execution of code in program depending upon the
condition. In java programming decision making is done by following mechanism.
1. if statement
2. Switch statement
3. Conditional Operator
Let check the IF condition first!
We are a team of dedicated people who perform intense research, pragmatic planning and come up with easily understandable and quality courses for student around the world. We follow an ongoing process of quality analysis by meticulously considering and improving our work by taking the feedback from the users.
We are fantastic content maker and fabulous presenters.
we are StudyEasy Organisation!
Chaand is a knowledgeable person and has keen interest in helping students worldwide. Chaand is Director of StudyEasy Organization and Chaand and his team is dedicated to build high quality content of technology based topics.