Key Software is Closed The Key Software website is now closed. Many thanks to all our customers over the past 5 years. Please send any queries to support@key-software.net

Test your Core Java skills

£19.99 £1.99 inc. VAT

139 multiple choice questions to test your Core Java skills

SKU: KS-0199 Category:

Description

Included in This Course + ? Practice Tests 6 Tests 139 questions

This practice test covers multiple choice questions on:

– Identifiers in Java and their naming rules.
– Various keywords in Java.
– main(String [] args) method in java.
– Java comments and their importance
– Two types of comments: Javadoc and developer
– Literals and Variables ???
– Primitive Data Types in Java
– Java Operators
– Operator Precedence and Associativity

Introduction, Javadoc comments, Variables, Data Types & Operators 20 questions

This practice test covers multiple choice questions on:
– Selection Statements: if & if – else?
– Selection Statements: if – else if – else
– Selection Statements: switch – case
– Looping Statements: while
– Looping Statements: do ? while
– Looping Statements: for
– Nested Control and Labeled Statements
– Branching Statements

Control Statements:- if, switch-case and loops 18 questions

This practice test covers multiple choice questions on:
– One-dimensional arrays?
– Multi-dimensional arrays
– Enhanced for-loop for Arrays
– Command-line arguments
– Java Package and Classpath?
– User-input with Scanner ?

Arrays, for-each loop, Command-line args, Packages, Classpath & User-input 25 questions

This practice test covers multiple choice questions on:
Classes and Objects
Constructors
Stack and Heap
Methods
Variables
Variable Shadowing
Initialization Blocks
Garbage Collection
Encapsulation
Access Modifiers
Inheritance
Polymorphism
Reference Type Method overloading
equals() method of Object class
Overriding Rules
Primitive Array vs Reference Array
abstract keyword
interface in Java
What’s new for interfaces in JDK 8.0
Association & Abstraction

Object Oriented Programming 41 questions

This practice test covers multiple choice questions on:
Introduction to exception
Exception Handling Framework
Checked and unchecked exceptions
try-catch blocks
Runtime Exceptions
Overriding Rules
finally block
try-with-resources
Eclipse Debugging: Exception Breakpoint

Java Exceptions 15 questions

This practice test covers multiple choice questions on:
– String class
– Methods of String class
– StringBuffer and StringBuilder
– Wrapper Classes
– Enums
– Enums: Constructors, instance variables and methods
– Enum and switch-case block
– Enum: valueOf, ordinal and compareTo methods
– Override Enum methods

String, StringBuilder, Wrapper classes and Enums 20 questions Description

This course is for anyone who wants to test or brush up their core Java skills or? face java interviews.?

Java is the most popular language world wide and technologies like Servlets & JSP, J2EE, Struts, Spring, Hibernate, JMS or android for mobile applications are all based on core Java.?

Quizzes cover following topics:-

  • Java syntax and grammar
  • Javadoc and developer comments and their significance.
  • Variables, Data Types and Operators
  • Control Statements: if-else, switch-case and loops
  • Java arrays and Command-line arguments
  • Packages, classpath and User-input using Scanner
  • Classes, objects, constructors, initialization blocks, type of variables, methods and Garbage collection
  • Object Oriented Programming Concepts:
    • Encapsulation
    • Inheritance
    • Polymorphism
    • Abstraction
  • Access specifier, instanceof operator and casting
  • String, StringBuilder and Wrapper classes
  • Exception
  • Enumeration

Most of the Quiz questions are not straight forward. There are trick questions included to flex your java muscles. Some examples of quiz questions are provided below:-

Q1: What will be the result of compiling and executing following program?

//Test1.javaclass Vehicle { public int getRegistrationNumber() { return 1; }}class Car { public int getRegistrationNumber() { return 2; }}public class Test1 { public static void main(String[] args) { Vehicle obj = new Car(); System.out.println(obj.getRegistrationNumber()); }}

A. 1
B. 2
C. An exception is thrown at runtime.
D. Compilation error.

Answer: D


Q2: Below is the code of Test06.java file.
What will be the result of compiling and executing following program by using the command java Test06 RED AMBER

public class Test06 { enum TrafficLight { ????RED, YELLOW, GREEN; } public static void main(String[] args) { ????TrafficLight tl = TrafficLight.valueOf(args[1]); ????switch(tl) { ????????case TrafficLight.RED: ???????????? System.out.println(“STOP”); ????????????break; ???????? case TrafficLight.YELLOW: ????????????System.out.println(“SLOW”); ????????????break; ????????case TrafficLight.GREEN: ???????????? System.out.println(“GO”); ???????????? break; ????????} ????}}

A. STOP
B. No output
C. IllegalArgumentException is thrown
D. None of the above

Answer: D


Q3: What will be the result of compiling and executing following program?

public class Test5 {? public static void m1() {?? System.out.println(“static method.”); ?}?? public static void main(String[] args) {?? Test5 obj = null;?? obj.m1();? }}

A. NullPointerException is thrown.
B. Compilation error.
C. static method.
D. None of the above.

Answer: C


Who is the target audience?

  • Anyone who has basic java skills
  • Anyone looking for quick brush up on fundamentals through questions
There are no reviews yet.