- References:
For Answers – Click Here – http://moroma.com/blog/tech-notes/pathway-for-a-budding-programmer/java-question-i-answers
- What is JDK? – Done
- What is javac? – Done
- What is JRE? – Done
- What is JVM?- Done
- What does a .java file contain?- Done
- What does a .class file contain?- Done
- Why is java considered platform independent?- Done
- What is difference between a primitive and non-primitive data type?- Done
- Give a short example code snippet for each of the two conditional statements in Java? – Done
- Give a short example code snippet for two loop statements in Java? – Done
- What are the components of a method “signature”? – Done
- What is OOP? – Done
- List at least 4 differences between OOP and Procedural Programming? – Done
- What are the 4 pillars or 4 main components of OOP? – Done
- How would you define an object? – Done
- What are the two components of an object? -Done
- How would you define a class? – Done
- What is the relationship between a class and an object? – Done
- What are object attributes & properties?- Done
- What are object methods & behaviors?- Done
- What is the difference between a class attribute and an object (or instance) attribute?- Done
- How would you create an instance an object “o1″ from a class “CCC”?- Done
- What is the significance of a class constructor?- Done
- What is the significance of a class destructor?- Done
- What do you mean by Inheritance? – Done
- How would you inherit a child class C1 from a parent class P1? – Done;
- What do you mean by Polymorphism? – Done
- What is the difference between overriding and overloading of methods? – Done
- What is the difference between static polymorphism and compile time polymorphism? – Done
- What do you mean by Encapsulation? – Done
- What is the difference between private scope attribute and public scope attribute? – Done
- Why would you create a protected scope attribute? – Done
- What do you mean by Abstraction? -Done
- In Java, what is the difference between the String and StringBuffer class? – Done
- What is the scope of a local variable vs an instance variable? -Done
- What is the significance of the “this” parameter? -Done
- What is the significance of the “super” parameter? -Done
- What are the wrapper classes for the primitive data types? -Done
- What is an array? – Done
- (Not a question) An array is an object that contains a collection of elements of the same type, indexed by a number starting with 0. An array variable is a reference to an array object.
- Write the code snippet to declare a variable “a” as an integer array that can hold 5 integer values? – Done
- What are the three java Collection classes? Give an example where each would be used? – Done
- What is the difference between abstract class vs interfaces? -Done
- What is a recursive function? -Done