Blog

Latest articles from our tech team about Dev_ works of Binary Cipher of Software Development

Write a java program that implements a simple/client application. That client sends data to a server. The server receives the data, Uses it to produce a result, and then sends the result back to the client. The client displays the result on the console. For ex: The data sent from the client is the radius of a circle, and the result produced by the server is the area of the circle(Use java.net)

//Program for implementing Server/Client Application // Server Program import java.io.*; import java.net.*; class Server {             public static void…

(Exception Handling and Multithreading) a) Write a program that reads two numbers from the user to perform integer division into Num1 and Num2 variables. The division of Num1 and Num2 is displayed if they are integers. If Num1 or Num2 were not an integer, the program would throw a NumberFormatException. If Num2 were Zero, the program would throw an ArithmeticException.

//Program to throw implement division and throw exceptions import java.util.*; class NAexception {             public static void main(String args[])…

(packages) Design a package to contain the class Student that contains data members such as name, roll number and another package contains the interface Sports which contains some sports information. Import these two packages in a package called Report which process both Student and Sport and give the report.

package pack1; public class Student {                                                          public int rol_no=18;                         public char name[]={‘s’,’e’,’k’,’h’,’a’,’r’}; }                                     package…

Enable Notifications OK No thanks