Archive for September, 2011

WellKnown port

These are the port that we are commonly using

Port numbers range from 0 to 65536, but only ports numbers 0 to 1024 are reserved for privileged services and designated as well-known ports. This list of well-known port numbers specifies the port used by the server process as its contact port.

Port Number Description
1 TCP Port Service Multiplexer (TCPMUX)
5 Remote Job Entry (RJE)
18 Message Send Protocol (MSP)
20 FTP — Data
21 FTP — Control
22 SSH Remote Login Protocol
23 Telnet
25 Simple Mail Transfer Protocol (SMTP)
37 Time
42 Host Name Server (Nameserv)
43 WhoIs
49 Login Host Protocol (Login)
53 Domain Name System (DNS)
69 Trivial File Transfer Protocol (TFTP)
70 Gopher Services
79 Finger
103 X.400 Standard
108 SNA Gateway Access Server
109 POP2
110 POP3
115 Simple File Transfer Protocol (SFTP)
118 SQL Services
119 Newsgroup (NNTP)
137 NetBIOS Name Service
139 NetBIOS Datagram Service
143 Interim Mail Access Protocol (IMAP)
150 NetBIOS Session Service
156 SQL Server
161 SNMP
179 Border Gateway Protocol (BGP)
190 Gateway Access Control Protocol (GACP)
194 Internet Relay Chat (IRC)
197 Directory Location Service (DLS)
389 Lightweight Directory Access Protocol (LDAP)
396 Novell Netware over IP
444 Simple Network Paging Protocol (SNPP)
445 Microsoft-DS
458 Apple QuickTime
546 DHCP Client
547 DHCP Server
569 MSN
1080 Socks

Leave a comment





Click the link to  the list of  packages,and its classes,and its methods in Java7

Leave a comment


Next week … ..

Leave a comment

A~Z in Java


It contains all the keyword ,technical terms used in java language

Leave a comment

How Many classes & Packages in Java

Total No of Classes:

Java1.02  –> 250

Java1.1  –> 500

Java(2-4)  –> 2300

Java5  –> 3500

Java6  –> 3793

Java7 –> 4024

Total No of  Packages :

Java6  –> 203

Java7 –> 209

All Java Related Links:


How Can a User give Yes/No Prompt in Powershell

 Command to display popup:
  $a = new-object -comobject
$input = $a.popup("Do u want to quit") //Display ok button
$input = $a.popup("Do u want to quit",0,"TitleName",1) // Display ok,cancel button
$input = $a.popup("Do u want to quit",0,"TitleName",2) // Display abort,retry,ignore button
$input = $a.popup("Do u want to quit",0,"TitleName",3) // Display yes,no,cancel button
$input = $a.popup("Do u want to quit",0,"TitleName",4) // Display Yes,no, button
$input = $a.popup("Do u want to quit",0,"TitleName",5) // Display retry,cancel button
$input = $a.popup("Do u want to quit",0,"TitleName",6) // Display retry,cancel,continue button

Leave a comment

Java-Naming conventions

Why Naming Standard..?

Easy to read for both the code developer and also  to other programmer

Easily find and fix the bug

Types of cases: R  ‘4’

Lower case:

Ex: hellojava

ApplicableTo: packages

Upper case:


ApplicableTo: Constant

Camel @ Upper CamelCase:

Ex: HelloJava

ApplicableTo: class, Interface, Variables

Mixed@  Lower CamelCase :

Ex: helloJava

ApplicableTo: methods,


  •  For interface the coder can append I before the name of the interface ie) IClonable
  • For constant having 2 words it is seperated by ‘_’  (underscore) ie)  CONSTANT_OF_PARAM
  • For package name for application it may be  ie) com.companyname.clientapplicationname

Comments in Java:

There are 3 types of comments in java namely

/* For methods ,variables  definition */

/** For documentation  purposes*/   

//for single line user command  

Leave a comment