Each socket nr. is 16 bits Ip address 4 byte Ethernet Addrss is 6 byte in case telephone is 10^24 . find proper lenght to Advantages and disadvantages of layered architecture in a network The following
Read moreAuthor: prashantkumar
java code
public class BankAccount { private int acno; private double balance; private String Cname; private String email; private int Pno ; public BankAccount(){ System.out.println(“Empty constructor called “); } public BankAccount(String number, double balance, String Cname, String
Read morejava while and do while statement
public class Loopey { public static void main(String [] args){ int count = 6; /*while (count != 6){ System.out.println(“count value is ” + count); count++; } for(int i=6; i!=6; i++){ System.out.println(“count value is ” +
Read morefor loop how to use method in loop
public class Formain { public static void main(String [] args ){ System.out.println(“10.000 at 2% interest =” + calculateInerest(10000.0,2.0)); System.out.println(“10.000 at 3% interest =” + calculateInerest(10000.0,3.0)); System.out.println(“10.000 at 4% interest =” + calculateInerest(10000.0,4.0)); System.out.println(“10.000 at 5%
Read morejava for loop
public class Formain { public static void main(String [] args ){ System.out.println(“10.000 at 2% interest =” + calculateInerest(10000.0,2.0)); System.out.println(“10.000 at 3% interest =” + calculateInerest(10000.0,3.0)); System.out.println(“10.000 at 4% interest =” + calculateInerest(10000.0,4.0)); System.out.println(“10.000 at 5%
Read morejava switch
public class Main { public static void main(String[] args){ int switchValue = 2; switch(switchValue){ case 1: System.out.println(“values was 1”); break; case 2: System.out.println(“values was 2”); break; default: System.out.println(“value was nither 1 or 2”); break; }
Read morejava method overloading
public class methodover { public static void main(String[] args) { int newScore = calculateScore(“Tim”,500); System.out.println(“New score is “ + newScore); calculateScore(75); // this is method with one
Read morejava variable inside scope .
public class pk { // heiglited word are key word reserved for java use public static void main(String[] args) { //
Read morejava expression
java programming has 50 reserved words. like different words like if, if-else, while, case etc . it is used in different programming language. List of keyword in java. https://en.wikipedia.org/wiki/List_of_Java_keywords *——–*————————**********——————-***********———– int score = 100;
Read morejava
A class is a group of objects which have common properties. It is a template or blueprint from which objects are created. It is a logical entity. It can’t be physical. A class in Java
Read more