NIELIT O Level Exam

What is the basic difference between JavaScript and Java?

What is the basic difference between JavaScript and Java?

जावास्क्रिप्ट और जावा के बीच बुनियादी अंतर क्या है?

A. Functions are considered as fields कार्यों को क्षेत्रों के रूप में माना जाता है

B. Functions are values, and there is no hard distinction between methods and fields कार्य मूल्य हैं, और विधियों और क्षेत्रों के बीच कोई कठोर अंतर नहीं है

C. Variables are specific चर विशिष्ट हैं

D. There is no difference इसमें कोई फर्क नही है




Correct Answer is :

B. Functions are values, and there is no hard distinction between methods and fields



Explanation
Java is an object-oriented programming language, while JS is an object-oriented scripting language. The main difference between JavaScript and Java is that functions are values, while methods and fields are not clearly defined.
Latest Current Affairs 2026 Online Exam Quiz for One day Exam Online Typing Test CCC Online Test Python Programming Tutorials Best Computer Training Institute in Prayagraj (Allahabad) Online MBA 2 years Online MCA Online BCA Best Website and Software Company in Allahabad