A class can be made static only if it is _______________?
Nested classCorrect
Static class
Nested methods
Static methods
A class can have multiple Static blocks, which will execute in the same sequence in which they have been written into the program.
TrueCorrect
False
A class derived from the abstract class must implement all those methods that are declared as abstract in the parent class.
TrueCorrect
False
A class that is declared using abstract keyword.
Child class
Abstract classCorrect
Parent class
Concrete class
A class which is not abstract is referred as.
Child class
Parent class
Abstract class
Concrete classCorrect
A constructor can be declared as final.
FalseCorrect
True
A final class can be inherited.
True
FalseCorrect
A final method cannot be overridden.
False
TrueCorrect
A final variable that is not initialized at the time of declaration is known as _______________.
Global variable
Local variable
Final variable
Blank final variableCorrect
A Hash can represent either a directory or a file which is the core of the Java.nio package.
True
FalseCorrect
A popular general-purpose programming language and computing platform. It is fast, reliable, and secure.
Protected
No ModifierCorrect
Public
Private
Abstract method has no body.
TrueCorrect
False
ALGOL 68 programming language was released in 1968.
TrueCorrect
False
All programming languages ends each of your statements with a semicolon (;).
True
FalseCorrect
All variables declared in an interface are by default final.
TrueCorrect
False
Allows developers to create Java programs that can be executed and run by the JVM and JRE.
J2SE
JRE
JVM
JDKCorrect
An abstract class can be instantiated.
FalseCorrect
True
An abstract class has no use until unless it is extended by some other class.
False
TrueCorrect
An abstract class must be extended and in a same way abstract method must be overridden.
TrueCorrect
False
An interface can implement another interface
FalseCorrect
True
ArrayList and HashMap are classes that allows you to manage ordered and unordered sets of data.
TrueCorrect
False
Attributes and methods with the access modifier protected can be accessed within your class, by all classes within the same package, and by all subclasses within the same or other packages.
Private
No Modifier
Public
ProtectedCorrect
Class that implements any interface must implement all the methods of that interface, else the class should be declared abstract.
FalseCorrect
True
Compiling is the process of a compiler going through the source code and creating a separate file that contains the machine code or the executable file.
TrueCorrect
False
Constants are simply container of information.
True
FalseCorrect
CRC stands for:
Class Responsibility CollaborationCorrect
Computer Recycling Center
Connected Row-Convex
Computer Resource Center
CRCW stands for:
Conjuction Read Conjunction Write
Complete Read Complete Write
Concurrent Read Complete Write
Concurrent Read Concurrent WriteCorrect
Extending an interface can implement another interface.
False
TrueCorrect
Feature of java that is very easy to learn, and its syntax is simple, clean and easy to understand.
Platform Independent
SimpleCorrect
Object-Oriented
Portable
Feature of java that means, organizing our software as a combination of different types of objects that incorporates both data and behavior.
Portable
Platform Independent
Object-OrientedCorrect
Simple
finalize is used in exception handling.
True
FalseCorrect
Finally is a method that is called by JVM during garbage collection.
FalseCorrect
True
HashSet implements everything the TreeSet does, but it also keeps everything in an order that you can control by implementing an interface called comparable in the class that you're storing.
True
FalseCorrect
Have methods and variables just like the class but the methods declared in it are by default abstract.
Abstract method
Override
InterfaceCorrect
Abstract class
IDE stands for:
Integrated Development EnvironmentCorrect
Integrated Digital Environment
Integrated Drive Electronic
Integrated Device Electronics
If a child does not implement all the abstract methods of abstract parent class, then the child class must need to be declared abstract as well.
TrueCorrect
False
If method parameters are declared final then the value of these parameters cannot be changed.
TrueCorrect
False
If you declare an abstract method in a class then you don't need to declare the class abstract as well.
True
FalseCorrect
Implements the remote interface of the component on the server.
None of the Choices
Components
Object/Remote InterfaceCorrect
Container
Interface provides full abstraction as none of its methods have body.
False
TrueCorrect
Interface which is declared inside another interface or class.
Nested interfaceCorrect
Multiple interface
Implementation interface
Hierarchical interface
It belong to the class instead of a specific instance, this means you can access it without object.
Static Keyword
Static Block
Static variable
Static membersCorrect
It can access class variables(static variables) without using object(instance) of the class.
Class variables
Class methods
Static block
Static methodsCorrect
It checks the code fragments for illegal code that can violate access right to objects.
Classloader
JVM
Security Manager
Bytecode VerifierCorrect
It determines what resources a class can access such as reading and writing to the local disk.
Bytecode Verifier
JVM
Security ManagerCorrect
Classloader
It facilitates you to carry the Java bytecode to any platform.
Platform Independent
PortableCorrect
Simple
Object-Oriented
It has the static keyword as a prefix in its declaration. Its definition occurs only inside a class and outside any function.
Class variablesCorrect
Variable Types
Instance variables
Local variables
It is a blueprint for objects to follow a specific schema defined in the class.
ClassCorrect
Method
Object
Behavior
It is a data type that accepts only true or false value.
Rational
BooleanCorrect
Characters
Integer
It is a good practice to name final variable in all CAPS.
TrueCorrect
False
It is a Java platform component that executes programs.
JDK
J2SE
JVMCorrect
JRE
It is a type of pattern defines as one-to-many dependency between objects so that when one object changes state, all of its dependents are notified and updated automatically.
None of the Choices
Observer PatternCorrect
Singleton Pattern
Decorator Pattern
It is a type of pattern that allow an object to alter its behavior or when its internal state changes and the object will appear to change its class.
None of the Choices
State PatternCorrect
Iterator Pattern
Style Pattern
It is a type of pattern that attaches additional responsibilities to an object dynamically. This pattern provide a flexible alternative to sub-classing for extending functionality.
Singleton Pattern
None of the Choices
Decorator PatternCorrect
Observer Pattern
It is a type of pattern that ensures a class has only one instance and provide a global access point to it.
Observer Pattern
Singleton PatternCorrect
None of the Choices
Decorator Pattern
It is a type of pattern that provides a way to access the elements of an aggregate object sequentially without exposing its underlying representation.
Iterator PatternCorrect
State Pattern
Style Pattern
None of the Choices
It is a type of programming wherein it generates dynamic pages, takes user input, access and modify temporary local storage and lastly, sends and receive request with server.
None of the Choices
Server Side
P2P
Client SideCorrect
It is an interface with blocks of data that deals with moving of complex data.
None of the Choices
Entity Object
Coarse-grained Java ObjectCorrect
Session Object
It is an object created within a specific client session, that is usually in conversational state and doesn't use memory outside the client session.
None of the Choices
Entity Object
Object Oriented
Session ObjectCorrect
It is an object designed to be persistent and has unique primary key identifier, that stores data across client sessions.
None of the Choices
Entity ObjectCorrect
Object Oriented
Session Object
It is common to all the instances (or objects) of the class because it is a class level variable.
Static members
Static variableCorrect
Static Keyword
Static Block
It is define as a family of algorithms, encapsulates each one and makes them interchangeable. This lets the algorithm vary independently from clients that use it.
Stragey PatternCorrect
None of the Choices
Decorator Pattern
Observer Pattern
It is not a specific object or program but instead it is a set of programming standards that all properties are private, has getter and setter methods, has public constructors that takes no arguments and can implement serializable API.
NetBeans
None of the Choices
JavaScript
Enterprise JavaBeansCorrect
It is one of the 5 steps of Object Oriented Design Process wherein it is the simple narrative about the application. Typically in use case or user stories.
Describe the Interaction
Gather the Requirements
Describe the ApplicationCorrect
Identify the Main Object
It is one of the Extension features of JavaBeans wherein you focused on making your applications personalized for different regions or different clients.
Internationalization
None of the Choices
Scalability
LocalizationCorrect
It is one of the several components of Javabeans that receives JMS message asynchronously.
None of the Choices
Message BeanCorrect
Java Bean
Session Bean
It is one way to handle conflicts by allowing only one processor to access a memory location at a given time and the other processor of the server will be locked out. This is considered the safest but slowest solution.
EREWCorrect
None of the Choices
CREW
CRCW
It is referred to as the communication speed that is limited by the speed of light and can be reduced through careful workflow balancing.
Session
None of the Choices
LatencyCorrect
Concurrent Access
It is the ability of the server to allow multiple clients sending a message into a single bean and the data stored in the server can be accessed by multiple client simultaneously.
Concurrent AccessCorrect
Session
None of the Choices
Latency
It is the framework that helps the server to interface with the JavaBeans components.
None of the Choices
Components
Object/Remote Interface
ContainerCorrect
It is the most fundamental entity in Java or any other Object Oriented Language.
Behavior
ObjectCorrect
Class
Method
It is the on-disk part of Java that creates the JVM.
J2SE
JRECorrect
JVM
JDK
It is the process wherein you capitalized the first letter of every word.
UpperCase
None of the Choices
CamelCaseCorrect
LowerCase
It is the solutions to common software design problems that occur over and over in software development.
Object Oriented
Design PatternCorrect
None of the Choices
System Analysis
It is the Standard Java Program or the Program itself.