ETIT-303 Java Programming and Web Design Tutorial 3
This document provides a list of 15 topics and questions related to Java programming and web design that need to be addressed, including defining light weight processes and transient/volatile variables, writing programs demonstrating labeled loops, synchronization and deadlocks, wrapper and vector classes, comparing strings, using the instanceof operator, hiding classes in packages, differences between sleep and wait methods, and whether finally blocks execute after return or System.exit statements. It also asks about strong/strict typing in Java and whether code can execute before the main method.
ETIT-303 Java Programming and Web Design Tutorial 3
This document provides a list of 15 topics and questions related to Java programming and web design that need to be addressed, including defining light weight processes and transient/volatile variables, writing programs demonstrating labeled loops, synchronization and deadlocks, wrapper and vector classes, comparing strings, using the instanceof operator, hiding classes in packages, differences between sleep and wait methods, and whether finally blocks execute after return or System.exit statements. It also asks about strong/strict typing in Java and whether code can execute before the main method.
Tutorial 3 a) b) c) d) e) f) g) h) i) j) k) l) m) n) o)
Define and WAP on light weight processes.
Why we say java is strongly and strictly typed language? Define and WAP on transient and volatile. WAP on labelled loops. Define synchronization and WAP on deadlock. Define and WAP on Wrapper and Vector classes. explain compareto() charAt() is reference to string List any two stream classes and their subclasses in java What problems occur with global variables? Enlist and explain. Write wait () methods syntax and program on thread. Write a program to compare two strings. Write a short code to show the functionality of instanceof operator. How can you hide a class in a package? What is the difference between methods sleep(1000) and wait (1000). If I write return or System.exit (0) at the end of try block then the finally block will still execute or not ? Explain both cases. p) Is it possible that something else is executed or called before main ( ) method? Give an example to justify your answer with output