Study Viral (Java Tutorials For Beginners - Step By Step)
  • Home
  • Java Tutorials
    • Core Java
    • Java Swing
    • MS Access JDBC Java Application
  • Facebook Page
  • Programs
    • C Programs
    • C++ Programs
    • Java Programs
    • Python Programs
  • UGC NET
  • Home
  • Java Tutorials
    • Core Java
    • Java Swing
    • MS Access JDBC Java Application
  • Facebook
  • Programs
    • C Programs
    • C++ Programs
    • Java Programs
    • Python Programs
  • UGC NET

10 Java Tutorial - Operators Logical Operator - Study Viral

 September 25, 2017     Java Tutorials     No comments   


10 Java Tutorial - Operators Logical Operator - Study Viral


Logical Operators are used when we want to check multiple conditions together.The logical && operator doesn't check second condition if first condition is false. It checks second condition only if first one is true.
The logical || operator doesn't check second condition if first condition is true. It checks second condition only if first one is false.

Arithmetic Operators are those operators which can to some mathematical work.

SymbolDescription
&&Logical AND
||Logical OR
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

09 Java Tutorials - Operators - Relational Operators - Study Viral

 September 25, 2017     Java Tutorials     No comments   


09 Java Tutorials - Operators - Relational Operators - Study Viral

A relational operator is a programming language construct or operator that tests or defines some kind of relation between two entities.
The relational operators are < , > , <= , >= , == , and !=.

Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

08 Java Tutorials Operators - Arithmetic Operators in Java - Study Viral

 September 25, 2017     Java Tutorials     No comments   


08 Java Tutorials Operators - Arithmetic Operators  in Java - Study Viral

Operators are special symbols (characters) that carry out operations on operands (variables and values).
For Examples c = a + b   Where + symbol is operator and a, b are operands.


Arithmetic Operators are those operators which can to some mathematical work.
SymbolDescription
+Addition
-Subtraction
*Multiplication
/Division
%Modulus




Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

07 Java Tutorials - Type Conversion in Java - Study Viral

 September 25, 2017     Java Tutorials     No comments   


07 Java Tutorials - Type Conversion in Java - Study Viral

Type Conversion is changing of one data type variable to other data type variable.
It can be lower data type to higher data type which known as Implicit Casting OR Widening Casting
OR Automatic Type Conversion.

byte ----> short ----> int -----> long -----> float -----> double


Also higher data type to lower data type is known as Explicit Type Conversion OR Narrowing Type Conversion.

byte <---- short <---- int <----- long <----- float <----- double
==============================================

class TypeConversion{
    public static void main(String []args){
        byte a = 126;
        System.out.println("byte = "+a);
        short b = a;
        System.out.println("short = "+b);
        long c = b;
        System.out.println("long = "+c);
       
        float d = c;
        System.out.println("float = "+d);
       
        d = d+0.254f;
        System.out.println("changed float = "+d);
       
        c = (long)d;
        System.out.println("long = "+c);
        c = c+126;
        System.out.println("long = "+c);
        a = (byte)c;
        System.out.println("byte = "+a);
       
    }
}

 Output :


Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

06 Java Tutorials - Variables and Data Type in Java - Study Viral

 September 25, 2017     Java Tutorials     No comments   


06 Java Tutorials - Variables and Data Type in Java - Study Viral


A variable is a named memory location that you can use to store a value. Also the value of variable can change during the execution of program.

Data type is a special keyword used to allocate sufficient memory space for the data, in other words Data type is used for representing the data in main memory (RAM) of the computer.
 
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg

05 Java Tutorial - Java Tokens - Study Viral

 September 25, 2017     Java Tutorials     No comments   


05 Java Tutorial - Java Tokens - Study Viral

What is Java Token ?


A token is the smallest element of a program that is understandable by  the java compiler.
These tokens define the structure of the Java language.
 

Types of Java Token ?


·        Identifiers,  Keywords,  Literals,  Operators,  Separators
Read More
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Newer Posts Older Posts Home

Facebook

StudyViral

Labels

Alphabet Pattern Binary Tree BLOB (Binary Large Object) Computer Networks Computer Science And Applications Paper-II Data Structure DBMS Digital Clock Digital Watch Extra Tutorials File Upload Find Age from Date of Birth Graph-Algorithms Java and J2EE web applications JAVA JDK 12 Java Mail API Java MySQL Java Programs Java Programs List Java Servlets Java Swing Java Swing With MySQL Database Java Tutorials JCalender KVS Compuer Science - January 2017 Question Paper MS Access JDBC Java Application Multiuser Login NETBEANS 11 IDE Occurrence of Digits in Number Operation System Pattern Program Reverse of String Sending Email Servlet Servlet Tutorial Software Engineering Star Struts 2 FrameWork Struts 2 Registration Form UGC NET JULY 2018 Windows Commands

Popular Posts

  • Create CON, AUX, NUL name folder and files in Windows - Study Viral
    Create CON, AUX, NUL name folder and files in Windows - Study Viral Most of you may be aware of many MS-DOS commands but still n...
  • UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 26)
    UGC NET JULY 2018 (Computer Science And Applications Paper-II) (Question 26) Q 26. A binary search tree in which every non-leaf node...
  • Java Swing Application for Sending E-Mail - StudyViral
    Java Swing Application for Sending E-Mail - StudyViral Hello Friends Welcome to StudyViraL Channel In this video I am going...

Categories

  • Alphabet Pattern (13)
  • Binary Tree (2)
  • BLOB (Binary Large Object) (1)
  • Computer Networks (2)
  • Computer Science And Applications Paper-II (40)
  • Data Structure (6)
  • DBMS (1)
  • Digital Clock (1)
  • Digital Watch (1)
  • Extra Tutorials (3)
  • File Upload (1)
  • Find Age from Date of Birth (1)
  • Graph-Algorithms (1)
  • Java and J2EE web applications (3)
  • JAVA JDK 12 (1)
  • Java Mail API (3)
  • Java MySQL (5)
  • Java Programs (44)
  • Java Programs List (3)
  • Java Servlets (3)
  • Java Swing (16)
  • Java Swing With MySQL Database (4)
  • Java Tutorials (37)
  • JCalender (1)
  • KVS Compuer Science - January 2017 Question Paper (6)
  • MS Access JDBC Java Application (6)
  • Multiuser Login (1)
  • NETBEANS 11 IDE (1)
  • Occurrence of Digits in Number (1)
  • Operation System (4)
  • Pattern Program (8)
  • Reverse of String (2)
  • Sending Email (1)
  • Servlet (3)
  • Servlet Tutorial (3)
  • Software Engineering (4)
  • Star (7)
  • Struts 2 FrameWork (2)
  • Struts 2 Registration Form (1)
  • UGC NET JULY 2018 (40)
  • Windows Commands (2)

Pages

  • Java Tutorials
  • ASP.NET (in Hindi)
  • Java Programs List

Blog Archive

  • ►  2021 (3)
    • ►  April 2021 (3)
  • ►  2019 (7)
    • ►  June 2019 (1)
    • ►  May 2019 (2)
    • ►  March 2019 (4)
  • ►  2018 (111)
    • ►  November 2018 (7)
    • ►  October 2018 (20)
    • ►  September 2018 (10)
    • ►  August 2018 (3)
    • ►  July 2018 (19)
    • ►  June 2018 (5)
    • ►  May 2018 (2)
    • ►  April 2018 (3)
    • ►  March 2018 (11)
    • ►  February 2018 (18)
    • ►  January 2018 (13)
  • ▼  2017 (36)
    • ►  December 2017 (10)
    • ►  November 2017 (9)
    • ►  October 2017 (7)
    • ▼  September 2017 (10)
      • 10 Java Tutorial - Operators Logical Operator - St...
      • 09 Java Tutorials - Operators - Relational Operato...
      • 08 Java Tutorials Operators - Arithmetic Operators...
      • 07 Java Tutorials - Type Conversion in Java - Stud...
      • 06 Java Tutorials - Variables and Data Type in Jav...
      • 05 Java Tutorial - Java Tokens - Study Viral
      • 04 Java Tutorial - Simple Java Class and it's Comp...
      • 03 How to Run First Java Program ?
      • 02 Java path set on Windows 8/Windows 8.1
      • 01 Java Installation and Path Set for Windows 10

About Me

Rohit Basra
Hello guys my name Rohit Basra. I love to code and teach java language.
View my complete profile

Followers

Copyright © Study Viral (Java Tutorials For Beginners - Step By Step) | Powered by Blogger