What are differences between COBOL and java ? why we are
giving more preference to COBOL ?

Answer Posted / kprasad

Few differences I can list down as following
1)Originally and still mostly Cobol is structured prog
langualge. Offcour se there are now a days OOD concepts in
cobol also. Bust still baasically it is structured prog.
lang. On the other hand Object Orientation is the base of
Java.
2) Cobol is developed for and still used for Business
Processing. You can have your business processing modules,
DB interaction modules in cobol. I haven't heard cobol used
for any system level prog or web developement or UIs. But
Java can be used along all layers of application from
presentation to business layers. Also now a days Sun has
developed JMV using Java itself.
3) Cobol compilers are platform dependent I suppose. Java
is platform independent.
4) Cobol is a lunguage as such but looking at the current
developmet Java has become more than a lunguage, a platform.
5) Cobol is not providing not many built in functions,
libraries like java

Is This Answer Correct ?    6 Yes 3 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can we find that module can be called – whether DYNAMICALLY or STATICALLY?

719


How to find out the closest prime number of an input number? I believe it has something to do with SEARCH and COBOL Linear Array.

3729


If you are current on the owner of a set, what is the difference between obtain next and obtain first?

649


I have a program with an Array of 5000 occurences which is being passed from 5 sub levels to the front end screen. Thess 5 programs using each 5*2 = 10 different arrays with size as 5000. This is causing the transaction to utilize more storage consupmtion. I am looking to reduce the storage consumption. As part of that initially i thought Dynamic array may solve my problem. After viewing the comments given i see its same as normal array. IS there any other way we can resolve this issue?

1237


What is amode(24)?

686






For rewrite, why is it mandatory that file needs to be opened?

627


What do you understand by psb and acb?

674


Explain sorting techniques in cobol program? Provide the sort file definition, the sort statement, its syntax and meaning

690


Explain the configuration section of a cobol program with examples of syntax.

664


Write down the divisions of cobol program?

675


How do you differentiate between cobol and cobol-ii?

662


input= ,,,, mainframe training ,,, hyderabad .... location.... output1=$ mainframe training in hyderabad location$ output2=**** mainframe training in hyderabad location ****. In this pgn when we give input considering the spaces the output is displayed in this format.Like in the place of ,,,, $ should be displayed likewise.So please helpmeout.

1790


how do you reference the ksds vsam file formats from cobol programs

671


Why would you use find and get rather than to obtain?

696


What are the different types of condition in cobol and write their forms.

670