Home
Video Series
Fast Math Tricks
Quantitative Aptitude
Class 8 Maths Videos
Class 9 Maths Videos
Class 10 Maths Videos
Reasoning Videos
Blog
Store
Register /Login
Home
Topic
Question
A package is a collection of
Options:
A
.
 Classes
B
.
 Interfaces
C
.
 Editing tools
D
.
 Classes and Interfaces
E
.
 Editing tools and Interfaces
Answer: Option D
Submit Your Solution Below and Earn Points !
0 Likes
Next Question
Report Problem
Share
Submit Solution
Your email address will not be published.
Required fields are marked
*
More Questions on This Topic :
Question 1.
A method within a class is only accessible by classes that are defined within the same package as the class of the metho....one of the following is used to enforce such restriction?
Question 2.
Choose the correct statement public class Circle{ private double radius; public Circle(double radius){ radius = radius; ....correct statement public class Circle{ private double radius; public Circle(double radius){ radius = radius; } }
Question 3.
Choose the correct statement. Restriction on static methods are: I.   They can only call other static methods. II. Â....static data. III. They cannot refer this or super in any way.
Question 4.
You have the following code in a file called Test.java class Base{ public static void main(String[] args){ System.out.pr....will happen if you try to compile and run this?
Question 5.
What will be the output? public class Test{ static{ int a = 5; } public static void main(String args[]){ new Test().call....Test{ static{ int a = 5; } public static void main(String args[]){ new Test().call(); } void call(){ this.a++; System.out.print(this.a); } }
Question 6.
Determine Output: class MyClass{ static final int a = 20; static final void call(){ System.out.println("two"); } static{....20; static final void call(){ System.out.println("two"); } static{ System.out.println("one"); } } public class Test{ public static void main(String args[]){ System.out.println(MyClass.a); } }
Question 7.
What is the output for the below code ? public class A{ static{ System.out.println("static"); } { System.out.println("bl....A{ static{ System.out.println("static"); } { System.out.println("block"); } public A(){ System.out.println("A"); } public static void main(String[] args){ A a = new A(); } }
Question 8.
Name the keyword that makes a variable belong to a class, rather than being defined for each instance of the class.....
Question 9.
What will be the output? public class Test{ public static void main(String[] args){ String value = "abc"; changeValue(va....args){ String value = "abc"; changeValue(value); System.out.println(value); } public static void changeValue(String a){ a = "xyz"; } }
Question 10.
What will be the output for the below code? public class Test{ static{ int a = 5; } public static void main(String[] arg....code? public class Test{ static{ int a = 5; } public static void main(String[] args){ System.out.println(a); } }
Latest Videos
Chapter 1 - GLOBAL STEEL SCENARIO & INDIAN STEEL INDUSTRY
Part 1 : (13-04-2024)
INDUSTRY AND COMPANY AWARENESS (ICA)
Direction Sense Test
Part 1
Reasoning (Hindi)
Chapter 1 - RMHP / OHP / OB & BP
Part 1 : (14-02-2024)
GPOE
Cube & Cuboid
Part 1
Reasoning (Hindi)
Data Interpretation (DI)
Basic Concept
Reasoning (Hindi)
Counting Figures Part 1
Counting Of Straight Lines
Reasoning (Hindi)
Sail E0 free webinar
Webinars
Real Numbers
Part 7
Class 10 Maths
Real Numbers
Part 1
Class 10 Maths
Polynomials
Part 1
Class 10 Maths
Latest Test Papers
Pie Chart - Test Paper 1
Data Interpretation
Reasoning & DI
Tabulation - Test Paper 2
Data Interpretation
Reasoning & DI
Test Paper 1
Direction Sense Test
Reasoning & DI
ICA , RDIC,GFM
Free Modal Test Paper - Non - Technical Branch
Old Syllabus 2022 - SAIL Junior Officer E0
GFM Combined 1
Free Revision Test
SAIL JO E-0
One click Login
Login With Google
Old way of Login
Login With Email
Submit Problem
Problem Type (Required)
Choose Problem Type
Incorrect Topic
Incomplete Question
Wrong Question
Wrong Solution
Wrong Option
Explaination : Please write a little about the issue
Submit Solution