Skip to content
Skip to content
PakMCQ
Practice
Mock Tests
Browse
Leaderboard
Search questions
Sign in
Home
›
Prep
›
Browse
›
Software Engineering
›
Java Concepts and Its Programming
Java Concepts and Its Programming
80 questions
Practise this subject
Questions
Which driver is called as thin-driver in JDBC ?
Show answer
Answer:
Type-4 driver
Minimum threads in a program are________________?
Show answer
Answer:
1
Suspend thread can be revived by using ?
Show answer
Answer:
resume() method
In Java byte, short, int and long all of these are ____________?
Show answer
Answer:
signed
Which method can’t be overidden ?
Show answer
Answer:
final
In java, gc() method is available in which package ?
Show answer
Answer:
java.lang package
Converting a primitive type data into its corresponding wrapper class object instance is called ________________?
Show answer
Answer:
autoboxing
In Java, the word true is ___________________?
Show answer
Answer:
A Boolean literal
Hot java is_______________?
Show answer
Answer:
Web browser
What is meaning of jar ?
Show answer
Answer:
java archived
A method within a class is only accessible by classes that are defined within the same package as the class of the method. Which one of the following is used to enforce such restriction ?
Show answer
Answer:
Do not declare the method with any accessibility modifiers.
javah stands for ?
Show answer
Answer:
java header file
Which method of the Applet class displays the result of applet code on screen ?
Show answer
Answer:
paint() method
Which of the following command is used to compile the Java program ?
Show answer
Answer:
javac
Size of int in Java is_________________?
Show answer
Answer:
32 bit
Which method executes only once ?
Show answer
Answer:
init() method
What is the output for the below code ? public class Test{public static void main(String[] args){int i = 010; int j = 07;System.out.println(i); System.out.println(j); } } ?
Show answer
Answer:
8 7
Suppose a class has public visibility. In this class we define a protected method. Which of the following statements is correct ?
Show answer
Answer:
This method is accessible from within the class itself and from within all classes defined in the same package as the class itself.
How many transaction isolation levels are defined in java.sql.Connection interface ?
Show answer
Answer:
5
JIT meaning ?
Show answer
Answer:
just in time
‹ Previous
1
2
3
4
Next ›
Home
Practice
Tests
Browse
Sign in
You are offline. Your answers are kept on this device and will sync when you are back online.
Install PakMCQ App
Practice faster with offline access!
Install
×
×
Install PakMCQ
Add to your iPhone / iPad Home Screen
1
Tap the
Share
button
at the bottom of Safari
2
Scroll down and select
Add to Home Screen
3
Tap
Add
in the top-right corner