How is Java Script less scoped than Java?

Asked by Last Modified  

Follow 2
Answer

Please enter your answer

"Rajesh Kumar N: Guiding Young Minds from 1 to 12 with Expertise and Care"

JavaScript has function & block scope, but lacks strict class-based encapsulation like Java. Java: Strong OOP, private/public modifiers, strict scoping. JavaScript: Uses var (function-scoped), let/const (block-scoped), but lacks true encapsulatio n.
read more
JavaScript has function & block scope, but lacks strict class-based encapsulation like Java. Java: Strong OOP, private/public modifiers, strict scoping. JavaScript: Uses var (function-scoped), let/const (block-scoped), but lacks true encapsulatio n. read less
Comments

Online Mathematics tutor with 8 years experience(Online Classes for 10th to 12th)

JavaScript has function & block scope, but lacks strict class-based encapsulation like Java. Java: Strong OOP, private/public modifiers, strict scoping. JavaScript: Uses var (function-scoped), let/const (block-scoped), but lacks true encapsulatio n.
Comments

Related Questions

I would like to apply as java trainer
Good Luck!! Best decision to share knowledge!!!
Ritika
Need to do java core and advanced certificate. Which books or pdf is need to refer?
Hi Prashanth, At first to be clear there is nothing called Core and Advance certificate, Its OCJP/SCJP Certification. The cost and other details are already mentioned in their respective portals. The...
Prashanth
What equipment do you need to teach online Java classes?
Team Viewer is the best tool for the same.
Imran
0 0
5
What is the difference between checked and unchecked exceptions?
The main difference between checked and unchecked exception is that the checked exceptions are checked at compile-time while unchecked exceptions are checked at runtime
Wren

Now ask question in any of the 1000+ Categories, and get Answers from Tutors and Trainers on UrbanPro.com

Ask a Question

Related Lessons

Java: A Quick Overview
Not purely Object Oriented: It doesn't support multiple inheritence, it supports primitive data types and static members. Doesn’t support multiple inheritance: Reason is diamond problem i.e.,...

1.3. Find the second largest element in an array.
public class Main { public static void main(String args) { int arr = {1, 3, 4, 6, 5}; int max = Integer.MIN_VALUE, secondMax = Integer.MIN_VALUE; for (int i = 0; i < arr.length; i++) { if (arr >...


Introduction to Course Content
Video about what we are going to learn throughout the Java Training Session .

Use of Service Locator Pattern
If we want to reuse the java code that should be the best approach w.r.t re-usability, maintanence and saving time to concentrate on our own businbess logic/requirement. In the similar approach many patterns...

Recommended Articles

Designed in a flexible and user-friendly demeanor, Java is the most commonly used programming language for the creation of web applications and platform. It allows developers to “write once, run anywhere” (WORA). It is general-purpose, a high-level programming language developed by Sun Microsystem. Initially known as an...

Read full article >

Before we start on the importance of learning JavaScript, let’s start with a short introduction on the topic. JavaScript is the most popular programming language in the world, precisely it is the language - for Computers, the Web, Servers, Smart Phone, Laptops, Mobiles, Tablets and more. And if you are a beginner or planning...

Read full article >

Java is the most commonly used popular programming language for the creation of web applications and platform today. Integrated Cloud Applications and Platform Services Oracle says, “Java developers worldwide has over 9 million and runs approximately 3 billion mobile phones”.  Right from its first implication as java 1.0...

Read full article >

In the domain of Information Technology, there is always a lot to learn and implement. However, some technologies have a relatively higher demand than the rest of the others. So here are some popular IT courses for the present and upcoming future: Cloud Computing Cloud Computing is a computing technique which is used...

Read full article >

Looking for Java Training Classes?

Learn from the Best Tutors on UrbanPro

Are you a Tutor or Training Institute?

Join UrbanPro Today to find students near you