/* Example of Precedence */
package Precedence;
public class Precedence
{
public static void main(String[] args)
{
int a = 5, b = 10, c = 15, d = 20;
int x, y, z;
...
Monday, March 26, 2018
About array in Java programme
Array:
Under the name of a common variable, the data stored in memory of the same type stored in memory is called array. The array is the number of variables set in the same type. Array variables can save multiple data in the same name, same type. Array is a derived data type. Before using the variable declaration, it is necessary to declare array...
Sunday, March 25, 2018
Ternary Operator of Java Programme
/* Example of Ternary Operator */
package Conditional;
public class Conditional
{
public static void main(String[] args)
{
int a = 10, b = 15;
int result;
result...
Assignment Operator of Java Programme
/* Example of Assignment Operator */
package webpractrice;
public class WebPractrice
{
public static void main(String[] args)
{
int a = 10, b = 20;
prln("a = "+ a + "\t\tb = "+b);
...
Bitwise Operator of Java Programming
/* Example of Bitwise Operator */
package Bitwise;
public class Bitwise
{
public static void main(String[] args)
{
int Op1 = 5, Op2 = 10;
int BitwiseOR, BitwiseAND;
...
Logical operator of Java Programme
/* Example of Logical Operator */
package Logical;
public class Logical
{
public static void main(String[] args)
{
boolean a = true, b = true , c = false, result;
prln("a = "+a+"\t b = "+b+ "\t...
Arithmetic operator of Java Programme
/* Example of Arithmetic Operator */
package Arithmetic;
public class Arithmetic
{
public static void main(String[] args)
{
int a = 10, b =15, c = 20;
float d;
int...
Saturday, March 24, 2018
Decremental of Java Programming
/* Example of Post-Decrement & Pre-Decrement */
package Decremental;
public class Decremental
{
public static void main(String[] args)
{
int counter = 1;
prln("Counter is : " +counter);
...
Post-Increment & Pre-Increment using in Java
/* Example of Post-Increment& Pre-Increment */
package Incremental;
public class Incremental
{
public static void main(String[] args)
{
int counter = 0;
prln("Counter is : " +counter);
...
CharInput of Java Programme
/* Reading a character from Keyboard */
package CharInput;
import java.io.DataInputStream;
public class CharInput
{
public static void main(String[] args)
{
DataInputStream in = new DataInputStream(System.in);
char...
Cast Operator of Java Programme
/* Example of Cast Operator */
package CastOperator;
public class CastOperator
{
static public void main(String[] args)
{
int x = 11, y = 5;
prln("x = "+x);
...
Monday, March 19, 2018
DataTypes using in Java
/* Various type Primitive data type using */
package DataTypes;
public class DataTypes
{
static boolean b = true;
static char c = 'A';
static byte x = 100;
static short s = 5000;
static int i = 3200000;
...
Sunday, March 18, 2018
String Operation of Java Programme
/* Example of String Operation */
package StringOperation;
public class StringOperation
{
static public void main(String[] args)
{
String S1 , S2;
S1 = new String("I Love ");
...
Character dispaly of Java Programme
/* Assigning Value to Character variables */
package charDispaly;
public class charDispaly
{
static public void main(String[] args)
{
char ch1 = 65;
char ch2 = 'A';
...
Saturday, March 17, 2018
Boolean Test of Java Programming
/* Working with boolean type Variable */
package BoolenTest;
public class BoolenTest
{
static public void main(String[] args)
{
int x , y;
boolean z;
x = 15;
...