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
.
 Editing tools and Interfaces
B
.
 Classes
C
.
 Editing tools
D
.
 Interfaces
E
.
 Classes and Interfaces
Answer: Option E
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.
Consider the following two classes declared and defined in two different packages, what can be added in class B to form ....add: import subPackage.A; at line 2 add : new A();
Question 2.
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 3.
You have the following code in a file called Test.javaclass Base{ public static void main(String[] args){ System.out.pri....will happen if you try to compile and run this?
Question 4.
Choose the correct statement. Restriction on static methods are: I. They can only call other static methods.II.....call other static methods.II. They must only access static data.III. They cannot refer this or super in any way.
Question 5.
Choose the correct statementpublic class Circle{ private double radius; public Circle(double radius){ radius = radius; }....private double radius; public Circle(double radius){ radius = radius; }}
Question 6.
What will be the output?public class Test{static{int a = 5;}public static void main(String args[]){new Test().call();}vo....Test{static{int a = 5;}public static void main(String args[]){new Test().call();}void call(){this.a++;System.out.print(this.a);}}
Question 7.
What is the output for the below code ?public class A{ static{ System.out.println("static"); } { System.out.println("blo....static void main(String[] args){ A a = new A(); }}
Question 8.
Determine Output:class MyClass{ static final int a = 20; static final void call(){ System.out.println("two"); } static{ ....}}public class Test{ public static void main(String args[]){ System.out.println(MyClass.a); }}
Question 9.
Name the keyword that makes a variable belong to a class, rather than being defined for each instance of the class.....
Question 10.
What will be the output for the below code?public class Test{ static{ int a = 5; } public static void main(String[] args....= 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