Enrol to start learning
Reading is open to everyone. Enrolling is free, and it is what unlocks the audio lessons, practice tests and progress tracking.
29.9. Challenges and Limitations
This section
Practice test
11 questions on this section. Wrong answers show you what to read again.
Sign up to take itWhole chapter
Revision test
Mixed questions from across the chapter. Your answers get marked.
Sign up to take itQuick
Flashcard drill
5 cards from this lesson. Good the night before a test.
Try these first
- 1.
What is the primary performance issue related to scripting languages in Java?
Hint
Think about how scripts are executed compared to Java code.
- 2.
What is sandboxing in relation to scripting?
Hint
Consider childproofing in environments.
- 3.
What is a primary challenge when using scripting languages in Java applications?
- Speed
- Flexibility
- Security
Hint
Consider how the languages are executed.
- 4.
Is sandboxing necessary when executing arbitrary scripts?
- True
- False
Hint
Think about the security implications of unsanctioned script actions.
- 5.
Design a secure sandboxing approach for a Java application that allows user-generated scripts. What measures would you implement?
Hint
Consider what resources should be restricted.
- 6.
Consider a legacy application depending on Nashorn. Outline a plan to transition to a new scripting engine, including testing and documentation.
Hint
What steps are vital for maintaining function during transitions?
Exercises
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
4 more questions available
Enrol freeQuiz
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting
1 more question available
Enrol freeChallenge Problems
Total Questions
2
Estimated Time
4 min
Passing Score
70%
Instructions
- Read each question carefully
- You can use hints if you need help
- Complete all questions before submitting