Home
Services
Our Products
Palette RGB
Code Asteroid
Skill Test
Code War
Videos
News
Jobs & Hiring
Tech News
Startups
Aptitude Test
Technology
Developer Corner
Tutorials
Sign In
Sign Up
Jobs & Hiring
Tech News
Developer Corner
Startups
Home
Services
Our Products
›
Back
‹
Palette RGB
Code Asteroid
Skill Test
Code War
Videos
News
›
Back
‹
Jobs & Hiring
Tech News
Startups
Aptitude Test
Technology
›
Back
‹
Developer Corner
Tutorials
Instruction
This test contains a total of 20 questions.
Do not switch the tab or open a new window, otherwise, the test will be submitted automatically.
Test time is 10 minutes.
Java Intermediate (Level 3)
Q 1.
which datatype is involved in byte, int, and literal numbers is promoted to which of these?
int
long
byte
float
Q 2.
What is BigDecimal.ONE?
wrong statement
custom defined statement
static variable with the value 1 on scale 10
static variable with the value 1 on scale 0
Q 3.
What is Truncation is Java?
Floating-point value assigned to an integer type
Integer value assigned to floating type
Floating-point value assigned to an Floating type
Integer value assigned to floating type
Q 4.
Which method returns the elements of Enum class?
getEnums()
getEnumConstants()
getEnumList()
getEnum()
Q 5.
Which of these is long data type literal?
Ox99fffL
ABCDEFG
Ox99fffa
99671246
Q 6.
which of these can be an arithmetic operator?
numeric
constant
character
numeric & character
Q 7.
Modulus operator % can be applied to which of the following?
integers
floating-point
both a & b
none of the above
Q 8.
Which of these statements are incorrect?
The assignment operators can be efficiently implemented by Java run-time system than their equivalent long forms
it run faster than their equivalent long forms
Assignment operators can be used only by numeric and character data type
None of the above
Q 9.
Which of these is specified by a File object?
a file in disk
directory path
directory in disk
none of the mentioned
Q 10.
Which of these are the method for testing whether the specified element is a file or a directory?
IsFile()
isFile()
Isfile()
isfile()
Q 11.
Which of these is an incorrect statement?
String object is immutable and cannot be changed
String object can point to some other reference in String variable
StringBuffer class is used for storing string in buffer for latter use
None
Q 12.
Which method can be used to convert all characters in a String into a character array?
charAt()
both getChars() & charAt()
both toCharArray0 & getChars()
all of the mentioned
Q 13.
When do we determine method overloading?
At run time
At compile time
At coding time
At execution time
Q 14.
When does overloading occur?
More than one method with same name but different method and different number of parameters
More than one method with same name, but different number of arguments
More than one method with same name, same number of parameters but different type
more than one method with same name, different type and arguments
Q 15.
How classpath file can be read?
InputStream in = this.getClass().getResource("SomeTextFile.txt");
InputStream in = this.getClass().getResourceClasspath("SomeTextFile.txt");
InputStream in = this.getClass().getResourceAsStream("SomeTextFile.txt");
InputStream in = this.getClass().getResource("classpath:/SomeTextFile.txt");
Q 16.
Which of the following is a correct constructor for thread?
Thread(Runnable a, String str)
Thread(int priority)
Thread(Runnable a, int priority)
Thread(Runnable a, ThreadGroup t)
Q 17.
Which of these packages contains all the classes and methods required for even handling in Java?
java.applet
java.awt
java.event
java.awt.event
Q 18.
Which of these methods are used to register a mouse motion listener?
addMouse()
addMouseListener()
addMouseMotionListner()
eventMouseMotionListener()
Q 19.
Which keyword is used by calling function to handle exception thrown by called function?
throws
throw
try
catch
Q 20.
what can be called as the process of writing the state of n object to a byte stream?
Serialization
Externalization
File Filtering
All of the mentioned
Reload Test
Back skill tests
Time:
Want to get latest updates of IT industry?
Subscribe to our newsletter!