Skip to main content

Posts

Showing posts from July, 2012

Introduction to JAVA - Review Questions

Very Basic Questions: 1) JAVA uses classes and objects .   Define classes and objects? What is their relationship? 2) Which of the following are Java reserved words?       run,  import,  default,  implement, main, int, Char, exit, extends, catch, if, for, when, do-while, While Basic Questions: Which statements are true? The default constructor initialises method variables. The default constructor has the same access as its class. The default constructor invokes the no-arg constructor of the superclass. If a class lacks a no-arg constructor, the compiler always creates a default constructor. The compiler creates a default constructor only when there are no other constructors for the class. Programming Problems: 1) Create a method called hasDoubleLetters() that returns true if a given word has at least 2 same letters  and false if not. Try to answer them and I will give you feedback! ... more to follow if ...

GUI Components

This presentation describes JAVA swing GUI components and Layout Managers Powerpoint presentation in movie mode....