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.
Which source of finance typically has the lowest cost of capital?
What is the full form of ISDN:
If the profit is 25% of the cost price, then it is:
Which of the following accounting rules can roughly estimate how many years a given sum of money must earn at a given compound annual interest rate in o...
Which of the following types of entities are mandatorily required to adopt Ind AS?
As per government procurement policy, Central Public Sector Enterprises (CPSEs) are required to procure what minimum percentage of their purchases from ...
TCS (Tax Collected at Source) is a tax collected by:
Ramesh draws a bill on Suresh. Ramesh endorsed the bill to Mukesh. The payee of the bill will be:
Â
A company has a paid-up share capital of ₹80 lakh and free reserves of ₹120 lakh. It plans to buy back 25% of its paid-up equity shares. The face va...
A company recognises revenue over time for a contract. Costs incurred to date = ₹40,00,000; total estimated cost = ₹1,00,00,000; total contract pric...