Question
1. Predict the output of the code public
class Animal { public static void main(String args[]) { public int localVar = 5; } }Solution
- Illegal Access Modifier in Method Scope :
- The keyword public is not allowed within the body of a method to declare a variable. Variables declared inside methods are considered local variables, and local variables cannot have access modifiers (public, private, protected).
- This results in a compilation error.
- In a certain code language, GLUE is coded as 72 and DEAF is coded as 20. How will WISE be coded in that language?
In a certain code language, ‘yn fd sd’ means ‘when oil is’, ‘sd nk yb’ means ‘poured oil tension’, ‘fd ts nk’ means ‘when decrease...
What could be the code for “represent investigation designs confronted”?
In a certain code language, ‘SERVICE’ is coded as ‘162’, ‘PLANTS’ is coded as '164'. What is the code for ‘VERTICAL’ in that code langua...
In a certain code STABLE is written as 53@2%4 and PRODUCT is written as 6#9*&13. How is APPLE written in that code?
...In a certain code language, ‘PERSONAL’ is written as ‘ALONRSPE’, ‘OPPOSITE’ is written as ‘TESIPOOP’ and ‘HAUNTING’ is written as �...
In a certain code, if REJOICE is coded as 331517, what is the code for HARMONY?
The code ‘IPGE’ represents which of the following word?
In a certain code language, "NAILS" is written as "QDLOV" and "RIGHT" is written as "ULJKW". How will "DINNER" be written in that language?
In a certain code language, 1615144 is related to 'POND' in the same way 231225 is related to which of the following words?