Java - Online Test - Between - javasearch.buggybread.com
Interview Questions
Search
Legacy
Tests
Repo
Legacy
Java
Java 8
Java 7
Java Abbreviations
OCJP / SCJP
Class List
New in Java 8
Java Exceptions
Spring Exceptions
Java Enums
Java 8 Lambda
Java 8 java.time
Big Data
Discussion Forum
Humor
Classes Search
Subscribe
Search Java Test Questions
223 test questions in repository.
Search
Java - Test Questions on 'Between' - 7 questions found
Which of the following can be marked static ?
Core Java
Methods , Variables and Initialization Blocks.
Methods , Variables , Initialization Blocks and Outer Classes and nested Classes.
Methods , Variables , Initialization Blocks and Outer Classes.
Methods , Variables , Initialization Blocks and nested Classes.
oops
java
static
nested classes
static nested classes
Which of the following collections stores its elements in insertion Order ?
Core Java
HashMap
TreeMap
LinkedHashMap
LinkedMap
linkedhashmap
collections
java
map
Which of the following Java feature promotes access protection or Hiding ?
Reference
Core Java
Inheritance
Encapsulation
Abstraction
Composition
java
java concepts
java features
oops concepts
oops features
access protection
information hiding
Which of the following is true ?
Core Java
Composition is Tightly Bound
Inheritance is Tightly Bound
Object can only hold reference of only one other object
A Class cannot be extended by multiple classes
What will be the output of exceuting main method ?
public static void main(String[] args){
List
list = new ArrayList();
list.add(1);
list.add(2);
list.add(3);
System.out.println(list);
}
Core Java
1,2,3
Order cannot be determined
compilation error
3,2,1
collections
list
arraylist
Function variables are kept in ..
Core Java
Stack
Heap
Both Stack and Heap
None of them
memory management
stack
heap
In Case a method is declared to throw an exception , We can only use a call to that method if ...
Core Java
We use the call within try block and catch the exception
We declare that the method is expected to throw the exception using throws
Both 1 and 2
Either 1 or 2
exception handling
throws
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus