Skip to content
    • info@hktsoft.net
  • Connecting and sharing with us
  • Login
  • About Us
    • info@hktsoft.net
HKT SOFTHKT SOFT
  • Home
  • Programming Languages
    • Popular Programming Languages
      • Core Java
      • JavaScript
      • Advanced Java
      • C
      • C#
      • C++
      • Python
      • PHP
      • HTML
      • CSS
    • Other Programming Languages
      • GitHub
      • Bootstrap
      • AngularJS
      • jQuery
      • MongoDB
      • NodeJS
      • Unix & Linux
    • Database
      • Basic Database
      • SQL
      • SQL Server
      • Data structures and algorithms
    • Website
      • WordPress
      • Joomla
      • Magento
      • Opencart
  • Corporate Management
    • Entrepreneurship
      • Startup
      • Entrepreneurship
      • Management Science
    • Managing primary activities
      • Marketing
      • Sales management
      • Retail management
      • Import – Export
      • International business
      • E-commerce
      • Project management
      • Product Management
      • Quality Management
      • Logistics Management
      • Supply Chain Management
    • Managing support activities
      • Strategy
      • Human Resource Management
      • Organizational Culture
      • Information System
      • Corporate Finance
      • Stock Market
      • Accounting
      • Office Management
  • Scientific Theories
    • Economic Theories
    • Social Theories
    • Political Theories
    • Philosophies
    • Theology
    • Art Movements
Difference between Core Java and Advanced Java

The main difference between Core Java and Advanced Java is that the Core Java is used to build general applications while the Advanced Java is used to build enterprise level applications. Java is a general-purpose high-level programming language that helps to build a variety of applications. Java is popular as it provides platform as it provides various features such as independency, [ [ ...]

18
Oct
Java Networking Classes and Interfaces

1. JAVA AND THE NET Java has some distinct advantages over other programming languages as far as network applications are concerned. One of the important features of Java is that it supports 16-bit Unicode for International character sets, which is still difficult to implement in other languages. In addition, Java can excellently handle network security [ [ ...]

18
Oct
Java Networking: URL

The primary classes to access the Internet are the java.net.URL class and the java.net. HttpURLConnection class. The class url encapsulates the Uniform Resource Locator (URL), which identifies a resource in the WWW uniquely. A resource can be anything such as a file or a directory, or it can be a reference to a more complicated [ [ ...]

18
Oct
Java Networking Proxy

1. PROXY To address security issue, network administrators often install a special component called “proxy server.” It is essentially a service that sits between the Internet and the internal network and manages connections between the two worlds. This way, proxies reduce outside security threats while still allowing internal users to access Internet services. However, Java [ [ ...]

18
Oct
Client/server Programs in Java

One of the central ideas of network computing is client-server model. Many networking applications including the Internet’s primary protocols such as HTTP, SMTP, DNS, etc. use this model. It has some distinct advantages over its counterpart, the peer-to-peer model (P2P) where peers are equally privileged, equipotent participants [Figure 13.2:]. Note that sockets may also be [ [ ...]

18
Oct
Sockets Programming in Java

A socket, in network terminology, is an end-point for communication between two processes on the network. In Java, sockets are represented by objects for exchanging data. The java.net package provides useful classes and interfaces for communication using sockets. Note that a socket is not a connection, it is an endpoint of communication. Sockets objects are [ [ ...]

18
Oct
TCP Sockets in Java

As mentioned earlier, Java TCP socket API supports Transmission Control Protocol (TCP). The java.net package provides ServerSocket and Socket classes to support TCP. To understand the functionality of these classes, let us first recapitulate TCP style of communication quickly. In this style of communication, a logical channel is created (using a three-way handshaking procedure) prior [ [ ...]

18
Oct
UDP Sockets in Java

In the previous sections, we have discussed how to develop network applications using stream sockets. Communication with a server using stream socket basically consists of two steps. First, create a channel with the server at the desired port. Then, send and receive data through this channel. The stream socket provides reliable communication of ordered stream [ [ ...]

18
Oct
Multicast Sockets in Java

1. MULTICASTING In all the programs that we have developed so far, the data is destined to only one target. In other words, the number of receivers in all those cases was only one. This type of communication is known as uni-cast. Though many applications use this style of communication, there are instances, where a [ [ ...]

18
Oct
Useful Methods of ServerSocket Class

The following sections give a summary of important methods of ServerSocket class. 1. Constructors ServerSocket() Creates a raw server socket which is not yet bound to a specific socket address (IP address and port). However, the binding may be done later using bind() method. ServerSocket(int port) Creates a server socket and bounds it to the [ [ ...]

18
Oct
Useful Methods of Socket Class

The following sections give a summary of important methods of Socket class. 1. Constructors Socket() Creates a raw socket which is not yet bound to a specific socket address (IP address and port). However, the binding may be done later using bind() method. The connection is not yet established to the server socket. However, the [ [ ...]

18
Oct
Useful Methods of DatagramSocket Class

1. Constructors DatagramSocket() Creates a datagram socket and binds it to any available port on the local host machine. This socket is also bound to all IP addresses. This means that the socket may be referred to by any IP address of the computer. protected DatagramSocket(DatagramSocketImpl impl) Constructs a datagram socket with the specified DatagramSocketImpl [ [ ...]

18
Oct
Useful Methods of DatagramPacket Class

1. Constructors DatagramPacket(byte[] buffer, int bytesToRead) Creates a DatagramPacket to hold received data. The receive() method of DatagramSocket reads bytesToRead bytes of data and stores in buffer. The bytesToRead must not be greater than buffer.iength else an IiiegaiArgumentException is thrown. DatagramPacket(byte[] buffer,int bytesToSend,InetAddress address,int port) Creates a DatagramPacket to hold data to be sent to [ [ ...]

18
Oct
Remote Method Invocation in Java

1. INTRODUCTION The network programs that we have developed so far use the concept of sockets. Although, socket provides a simple way to write network programs, it is neither very convenient nor the most powerful. This is because everything must be transferred over the network as a stream of bytes. Though, Java provides a rich [ [ ...]

19
Oct
Remote Method Invocation in Java: An Application

In this section, we shall develop a simple but elegant distributed application using Java RMI technology. In this application [Figure 14.4:], the server program creates and exports a simple remote object (we call it calculator) which provides one method. The method takes two integers as arguments and returns their sum. A client program gets a [ [ ...]

19
Oct
Compiling and Running the Program in JAVA

1. COMPILING THE PROGRAM Suppose the server application is developed in the directory E:\Net\rmi\caicuiator\server of a computer having IP address 172.16.5.81. Hereafter, we shall refer to this directory as server_home. Now, put server-side files in server_home as shown in Figure 14.7: (i) Assume that the client application is developed in the directory E:\Net\rmi\caicuiator\ciient of another [ [ ...]

19
Oct
Remote Method Invocation in Java: Callback

1. CALLBACK In a typical RMI application, clients invoke methods on remote objects created by the server. Callback mechanism (as the name suggests) allows server to call methods back on remote objects created and passed by the clients. This service is necessary in many cases. Consider the following situations: When a client invokes a method [ [ ...]

19
Oct
Dynamic Object Activation & Dynamic Class Downloading

1. DYNAMIC OBJECT ACTIVATION In our previous examples, remote objects run all the time even if no method on them is invoked. Java 2 and later releases allow us to register information about remote object implementations whose instance should be created and executed on demand, instead of running all the time. In fact, the RMI [ [ ...]

19
Oct
Remote Method Invocation in Java: An Example

In this section, we shall develop another powerful distributed application using RMI technology that makes use of the power of dynamic class downloading. In this application [Figure 14.17:], the server creates a remote object called scheduler, which accepts jobs from the clients, executes these jobs locally, calculates the execution time, and finally returns the output [ [ ...]

19
Oct
Java Mail API

1. E-MAIL An electronic mail (or simply email or e-mail), as its name suggests, is a digital version of a message (or letter). This concept was introduced much earlier than evolution of the Internet. Needless to say that the email system was very simple at that time. It was as simple as leaving a message [ [ ...]

20
Oct
  • 1
  • 2
  • 3
  • 4
  • …
  • 7
Corporate Management
  • Marketing and Corporate BrandingMarketing and Corporate Branding
  • Production Management : Definition, Function and ScopeProduction Management : Definition, Function and Scope
  • Office Management: definition, types, process, jobs and best practicesOffice Management: definition, types, process, jobs and best practices
  • Firm Strategy and Strategic ManagementFirm Strategy and Strategic Management
  • Retail Management: Definition, Processes, Best PracticesRetail Management: Definition, Processes, Best Practices
  • Quality Management – Understanding how does it improve firm performanceQuality Management – Understanding how does it improve firm performance

Most Read Posts

Scientific Theories
  • Great Thinkers and their Big IdeasGreat Thinkers and their Big Ideas
  • List of Theological Belief SystemsList of Theological Belief Systems
  • Social Theories and ConceptsSocial Theories and Concepts
  • Political Theories and ConceptsPolitical Theories and Concepts
  • Economic Theories and ConceptsEconomic Theories and Concepts
  • Philosophical Theories and ConceptPhilosophical Theories and Concept

Hãy ủng hộ và đồng hành cùng chúng tôi

... trong chia sẻ và phổ biến kiến thức bằng các hành động thiết thực và hoàn toàn miễn phí của bạn.

hotlineTThảo luận đóng góp ý kiến

Nhiệt tình tham gia thảo luận và nêu ý kiến đóng góp, kinh nghiệm thực tế của bạn qua từng bài viết, videos trên website của chúng tôi.

hỗ trợ hkt Chia sẻ có bản quyền

Hãy cập nhật và chia sẻ rộng rãi các bài viết, videos có ghi rõ nguồn của chúng tôi trên Facebook và các kênh thông tin của bạn.

hỗ trợ hkt Đăng ký và likes bài viết, videos

Ủng hộ chúng tôi về tinh thần và bằng những hành động thiết thực và hoàn toàn miễn phí của các bạn trên kênh thông tin của chúng tôi.

HKT Soft

About HKT CHANNEL
About HKT CONSULTANT

Website Structure

Java & JavaScript ,  C & C# & C++,  Python
PHP,  HTML,  CSS, GitHub,   Bootstrap,   Unix & Lunix
Database,  SQL,  SQL Server, Data structures and algorithms 

HKT Consultant JSC.

      "Knowledge - Experience - Success"
- Email: Info@hktsoft.net
- Website:
hktsoft.net

  • Home
  • Programming Languages
    • Popular Programming Languages
      • Core Java
      • JavaScript
      • Advanced Java
      • C
      • C#
      • C++
      • Python
      • PHP
      • HTML
      • CSS
    • Other Programming Languages
      • GitHub
      • Bootstrap
      • AngularJS
      • jQuery
      • MongoDB
      • NodeJS
      • Unix & Linux
    • Database
      • Basic Database
      • SQL
      • SQL Server
      • Data structures and algorithms
    • Website
      • WordPress
      • Joomla
      • Magento
      • Opencart
  • Corporate Management
    • Entrepreneurship
      • Startup
      • Entrepreneurship
      • Management Science
    • Managing primary activities
      • Marketing
      • Sales management
      • Retail management
      • Import – Export
      • International business
      • E-commerce
      • Project management
      • Product Management
      • Quality Management
      • Logistics Management
      • Supply Chain Management
    • Managing support activities
      • Strategy
      • Human Resource Management
      • Organizational Culture
      • Information System
      • Corporate Finance
      • Stock Market
      • Accounting
      • Office Management
  • Scientific Theories
    • Economic Theories
    • Social Theories
    • Political Theories
    • Philosophies
    • Theology
    • Art Movements
  • About-Us

Login

Lost your password?