Just revising for my exams, and ive made some questions for myself to answer, ive answered most of them in my words, if anyone could answer some in there terms so i can compare them to my answers it would help greatly in my revision.
�Explain the difference between a syntax error and a
Java Exception.
�What is the difference between checked and unchecked exceptions in java?
�Describe static data and dynamic data. Which is more useful, and why?
�Why do some methods use �void�in their header while others use a type e.g.
String or int?
�Why do some methods use �static�in their header while others do not?
�What are formal parameters, and how are they different from actual parameters?
�Describe the parameter-passing mechanism of a value parameter and a reference parameter.
�Explain the difference between an instance variable and a class variable.
�What are syntax errors & how are they detected?
�What are logic errors & how are they detected?
�Explain the difference between dynamic arrays and static arrays.
�How is a dynamic array declared, initialised and processed? How does that different from the handling of a static array?
�What is a primitive data type in Java, and what happens in memory when it is declared & initialised?.
questions on OOP concepts
�What is the difference between the declaration of an object and the instantiation of an object?
�Explain why Java objects occupy unpredictable amounts of memory, and explain what happens in memory at the declaration of an object.
�Explain the three categories of method in java: constructor methods, instance methods and class methods.
�What effect does it have to use each of the following access modifiers: private, public, protected ?
�What is meant by encapsulation in OOP and how does it lead to an abstract data type?
�What is meant by
polymorphism in OOP?
�What are primitive data types in Java, and how do they differ from Java objects?
�When a Java object is declared & instantiated, what happens in memory?
questions on superclasses & subclasses
�draw a diagram representing the data inheritance relationship between the two classes
�what effect does super have when used in the given subclass?
�what effect does this have when used in the given subclass?
�what effect does this have when used in the given superclass?
�which methods are available to objects from the superclass?
�which methods are available to objects from the subclass?
�why are some methods �static� but others are not?
�why are some methods �public� and others �private�/�protected�?
�why are some variables/methods �protected� and others �private�?