Showing posts with the label JAVA

What is multithreading? Why it is required?

Java provides built-in support for multithreaded programming. A multithreaded program contains two or more parts that can run concurrently. Each part of such a program is cal…

Comparison between Abstract Class and interface

Abstract Class and interface  Abstract Class   Interface   A Java abstract class can have instance methods that implement a default behavior.  Java interface are implicitly a…

Difference between error and exception

Difference between error and exception in Java Errors and exceptions both inherit from Throwable, but they differ in these ways:  Exceptions  Errors  Any departure from the e…

Explain primitive Data types of JAVA

Java defines 8 primitive types: byte Smallest integer type It is a signed 8-bit type (1 Byte) Range is -128 to 127 Especially useful when working with stream of data from a …

Explain short circuit operators in JAVA

Circuit operators Java provides two interesting Boolean operators not found in many other computer languages. These are secondary versions of the Boolean AND and OR operators…

Explain features of JAVA

Features of JAVA Platform Independent Unlike many other programming languages including C and C++, when Java is compiled, it is not compiled into platform specific machine, r…

Explain primitive Data types of JAVA

Java defines 8 primitive types: byte Smallest integer type It is a signed 8-bit type (1 Byte) Range is -128 to 127 Especially useful when working with stream of data from a n…

Write a Client-Server application using TCP Socket where client can send message and server respond with the reverse of them

Question:  Write a Client-Server application using TCP Socket where client can send message and server respond with the reverse of them. MyClient.java : package MyCl…

Write a Web Application using Servlet to find the sum of all the digit of an input integer

Write a Web Application using Servlet to find the sum of all the digit of an input integer. index.html <!DOCTYPE html> <html>     <head>         &l…

Load More That is All